Processing methods, systems, devices, and media for automated dispensing processes
By generating the association between prescription information and monitoring video and segmenting the data, the problem of low efficiency in monitoring video backtracking in automated dispensing systems is solved, achieving efficient and accurate monitoring and backtracking of the dispensing process.
Patent Information
- Application Number
- CN202311311989.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-10
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2043-10-10
AI Technical Summary
In existing automated medication dispensing systems, the retrospective review and verification of monitoring videos are inefficient and prone to errors, requiring manual searching and verification of the monitoring videos.
By acquiring monitoring videos corresponding to prescription information during the automated dispensing process, generating video identifiers and segmenting them to create an identifier array, the association between prescription information and monitoring videos is realized, supporting rapid location and backtracking of the dispensing process.
It improves the transparency and reliability of the automated medication dispensing process, enables visualization and efficient traceability of each dispensing step, reduces human intervention, and improves the accuracy and comprehensiveness of monitoring videos.
Smart Images

Figure CN119810725B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates generally to the technical field of medical equipment, and in particular, to a processing method, system, device and medium for an automatic dispensing process. BACKGROUND
[0002] In recent years, more and more dispensing systems have adopted automatic dispensing technology. The automatic dispensing system is a system that automatically picks up multiple drugs according to prescription information and automatically dispenses multiple drugs. Compared with the traditional manual dispensing method, the automatic dispensing system greatly saves manpower and material resources, improves the speed and accuracy of drug dispensing, effectively reduces various omissions of manual dispensing, and realizes the intelligentization and informatization of medical drug dispensing.
[0003] In order to make the dispensing process traceable, it is usually necessary to take monitoring measures on the automatic dispensing system. In the prior art, a camera is usually used to monitor the dispensing process, and when it is necessary to trace the dispensing process corresponding to a certain prescription or a certain dispensing link in the dispensing process, it is generally necessary to use the manual checking method to watch the entire monitoring video to find the monitoring video segment corresponding to the required dispensing link.
[0004] However, the above prior art usually needs to manually find the monitoring video corresponding to the prescription and rely on manual checking of the monitoring video when recalling the monitoring video, which is low in efficiency and prone to errors. SUMMARY
[0005] The present disclosure is proposed in view of the above situation, and aims to provide a processing method, system, device and medium for an automatic dispensing process, which can comprehensively monitor multiple dispensing links in the automatic dispensing process and quickly retrieve the monitoring video corresponding to the prescription information and the monitoring video segment corresponding to the multiple dispensing links according to the prescription information.
[0006] To this end, the first aspect of the present disclosure provides a processing method for an automatic dispensing process, which is a processing method for processing monitoring videos in the automatic dispensing process, comprising: acquiring a monitoring video corresponding to prescription information in the automatic dispensing process, the prescription information comprising a prescription identifier for characterizing uniqueness of the prescription information; acquiring a video identifier matched with the monitoring video based on the monitoring video, the video identifier comprising the prescription identifier and a first time identifier for characterizing a monitoring time of the monitoring video; associating the prescription information and the monitoring video based on the video identifier; segmenting and intercepting the monitoring video associated with the prescription information to obtain a plurality of monitoring video segments, the plurality of monitoring video segments corresponding to a plurality of dispensing links in the automatic dispensing process one by one; acquiring a video segment identifier matched with the monitoring video segment based on the monitoring video segment; generating an identifier array based on the prescription identifier, the video identifier, and the video segment identifier; and associating the identifier array to the prescription information.
[0007] In the first aspect of the present disclosure, by acquiring a monitoring video corresponding to prescription information in an automatic dispensing process and associating the prescription information and the monitoring video, the prescription information and the monitoring video of the automatic dispensing process can be corresponded one by one; by segmenting and intercepting the monitoring video corresponding to the prescription information, the monitoring video segments corresponding to each dispensing link in the dispensing process can be obtained; and by associating the identifier array to the prescription information, the prescription information can be corresponded to the monitoring video and the plurality of monitoring video segments respectively. In this case, the monitoring video segments corresponding to the plurality of dispensing links can be quickly located with the prescription information comprising the prescription identifier as a retrieval condition, thereby realizing the visualization of each dispensing link in the automatic dispensing process, facilitating the recording of each dispensing link in the dispensing process, thereby facilitating the backtracking and checking of the automatic dispensing process, improving the efficiency of backtracking and checking, and improving the transparency and credibility of the dispensing process.
[0008] In addition, in the processing method of the first aspect of the present disclosure, optionally, the obtaining the monitoring video comprises: detecting whether a video service is started; checking a number of cameras for shooting the monitoring video in response to the video service being started; controlling the cameras to start video monitoring of the automatic dispensing process in response to the number of cameras satisfying a preset condition and based on the first received prescription identifier; and controlling the cameras to end the video monitoring of the automatic dispensing process based on the second received prescription identifier. In this case, the monitoring video can be recorded by detecting that the video service has been started, and the number of cameras that are turned on can be automatically controlled based on the monitoring requirements of the respective prescription information to perform multi-angle monitoring of the automatic dispensing process, so that multi-angle monitoring video of the automatic dispensing process can be obtained, the monitoring comprehensiveness of multiple dispensing links in the automatic dispensing process can be improved, and the flexibility of monitoring the dispensing links corresponding to different prescription information can be improved. In addition, the start and end of the monitoring based on the prescription identifier can facilitate the correspondence between the obtained at least one monitoring video and the prescription information.
[0009] In addition, in the processing method of the first aspect of the present disclosure, optionally, the number of cameras is a plurality, and the video identifier further comprises a camera position identifier of the camera. In this case, based on the plurality of cameras, a plurality of monitoring videos corresponding to the prescription information can be obtained, and based on the camera position identifier, the camera positions for shooting the respective monitoring videos can be distinguished, and further the monitoring focus areas of the respective monitoring videos can be distinguished.
[0010] In addition, in the processing method of the first aspect of the present disclosure, optionally, obtaining the plurality of monitoring video segments comprises taking the starting time of the automatic dispensing process corresponding to the prescription information as the first time identifier, obtaining an initial time period of each dispensing link based on the first time identifier and a dispensing speed of the dispensing link; taking a plurality of initial pictures corresponding to the initial time period in the monitoring video, obtaining at least one target picture based on the plurality of initial pictures and at least one pre-stored picture, the pre-stored picture being a picture corresponding to the starting time or the ending time of the dispensing link which has been calibrated; obtaining a target time period of each dispensing link based on a target time of the target picture, the target time being a monitoring time corresponding to the target picture; and segmenting and taking the monitoring video based on the target time period to obtain the plurality of monitoring video segments. In this case, the initial time period of each dispensing link, i.e., the estimated time period, can be calculated based on the first time identifier and the dispensing speed of each dispensing link, then a plurality of pictures are taken within the initial time period and compared with the pre-stored picture, since the pre-stored picture is a calibrated picture, the accuracy of obtaining the target picture can be improved based on the pre-stored picture as the reference for comparison, and thus the accuracy of the starting time of each dispensing link can be improved, thereby improving the accuracy of the target time period of each dispensing link, i.e., the accuracy of the judgment of the actual time period of each dispensing link, and thus the accuracy of taking the monitoring video segment corresponding to each dispensing link can be improved.
[0011] In addition, in the processing method of the first aspect of the present disclosure, optionally, obtaining the target time period comprises comparing each of the initial pictures with the pre-stored picture to obtain a similarity between each of the initial pictures and the pre-stored picture; in response to the highest similarity and the similarity being not less than a preset threshold, taking the initial picture corresponding to the highest similarity and the similarity being not less than the preset threshold as the target picture and recording the target time corresponding to the target picture; and obtaining the target time period based on the target time. In this case, by taking the initial picture with the highest similarity and the similarity being not less than the preset threshold to the pre-stored picture as the target picture, the accuracy of the target picture can be improved, and thus the accuracy of the target time period corresponding to each dispensing link of the prescription information can be improved, and thus the monitoring video segment obtained by segmenting and taking the monitoring video according to the target time period can accurately record the dispensing progress of each dispensing link.
[0012] In addition, in the processing method of the first aspect of the present disclosure, optionally, at least one of the target pictures is taken as a cover thumbnail of each of the monitoring video segments, and the plurality of monitoring video segments are shrunk to the same page. In this case, since the monitoring video segments take the target pictures as the cover thumbnails, the corresponding monitoring video segment of each dispensing link can be quickly found by browsing the cover thumbnails, thereby improving the backtracking efficiency and checking efficiency of each dispensing link.
[0013] In addition, in the processing method of the first aspect of the present disclosure, optionally, the prescription information further includes a search keyword of each dispensing link, and the video segment identifier corresponding to the prescription information is obtained by encryption based on the prescription identifier, the video identifier, a second time identifier for representing the monitoring time of the monitoring video segment, and a random number. In this case, the monitoring video segment is indexed by the video segment identifier, and the corresponding monitoring video segment of the searched dispensing link can be quickly located by taking the prescription information including the search keyword of each dispensing link as a search condition, that is, the monitoring video segment of the dispensing link matching the keyword in the search condition can be obtained, thereby facilitating the search of the monitoring video segment corresponding to each dispensing link of the prescription information. In addition, the video segment identifier obtained by the encryption method can protect the data security.
[0014] The second aspect of the present disclosure provides a monitoring system for an automatic dispensing process, which is a monitoring system for processing monitoring videos in an automatic dispensing process, including a recording end, a processing end, and a service end. The recording end is configured to obtain monitoring videos corresponding to prescription information in the automatic dispensing process. The prescription information includes a prescription identifier for representing the uniqueness of the prescription information. The processing end is configured to obtain a video identifier matching the monitoring videos based on the monitoring videos, the video identifier including a first time identifier for representing the monitoring time of the monitoring videos and the prescription identifier. The processing end is configured to associate the prescription information and the monitoring videos based on the video identifier, and segment and intercept the monitoring videos associated with the prescription information to obtain a plurality of monitoring video segments, the plurality of monitoring video segments corresponding to a plurality of dispensing links in the automatic dispensing process one by one. The processing end is further configured to obtain a video segment identifier matching the monitoring video segment based on the monitoring video segment, and generate an identifier array based on the prescription identifier, the video identifier, and the video segment identifier. The service end is configured to associate the identifier array to the prescription information.
[0015] In the second aspect of the present disclosure, the monitoring system comprises a recording end, a processing end and a service end. In this case, the monitoring video corresponding to the prescription information in the automatic dispensing process can be obtained through the recording end, the prescription information and the monitoring video can be associated and the monitoring video segments corresponding to each dispensing link in the dispensing process can be obtained through the processing end, and the identification array can be associated to the prescription information through the service end to make the prescription information correspond to the monitoring video and the plurality of monitoring video segments respectively, so that the prescription information can be read and inquired, and the monitoring video segments corresponding to the plurality of dispensing links can be quickly located with the prescription information including the prescription identification as a retrieval condition. The processing end can provide functions such as video playing, pausing, fast forwarding, fast rewinding and the like, so as to facilitate the backtracking and checking of the automatic dispensing process, improve the efficiency of the backtracking and checking, and improve the transparency and credibility of the dispensing process.
[0016] The third aspect of the present disclosure provides an electronic device comprising a processor and a memory, wherein the processor executes a program stored in the memory to implement the processing method according to the first aspect of the present disclosure.
[0017] The fourth aspect of the present disclosure provides a computer-readable storage medium storing at least one instruction, wherein the at least one instruction is executed by a processor to implement the processing method according to the first aspect of the present disclosure.
[0018] According to the present disclosure, a processing method, system, device and medium for an automatic dispensing process are provided, which can comprehensively monitor a plurality of dispensing links in the automatic dispensing process, and can quickly retrieve the monitoring video corresponding to the prescription information and the monitoring video segments corresponding to the plurality of dispensing links according to the prescription information. BRIEF DESCRIPTION OF DRAWINGS
[0019] The present disclosure will now be explained in further detail by way of example only with reference to the accompanying drawings.
[0020] Figure 1 is a schematic diagram illustrating an application scenario of the processing method according to an example of the present disclosure.
[0021] Figure 2 is a flowchart illustrating the processing method according to an example of the present disclosure.
[0022] Figure 3 is a flowchart illustrating the acquisition of the monitoring video according to an example of the present disclosure.
[0023] Figure 4 is an information flow diagram of the monitoring system according to an example of the present disclosure.
[0024] Figure 5 is a flowchart illustrating the end of the video monitoring of the automatic dispensing process according to an example of the present disclosure.
[0025] Figure 6 Fig. 1 is a flow chart illustrating a first embodiment of a method for obtaining a plurality of surveillance video segments according to the present disclosure.
[0026] Figure 7 Fig. 2 is a flow chart illustrating a second embodiment of a method for obtaining a plurality of surveillance video segments according to the present disclosure.
[0027] Figure 8 Fig. 3 is a block diagram illustrating a surveillance system for an automatic dispensing process according to the present disclosure. DETAILED DESCRIPTION
[0028] It should be noted that the terms "comprising" and "having" and any variations thereof, such as a process, method, system, product or apparatus including or having a series of steps or units, do not necessarily limit those steps or units to the clearly listed ones, but can include or have other steps or units that are not clearly listed or inherent to such processes, methods, products or apparatuses.
[0029] The present disclosure provides a processing method (hereinafter can be referred to as a processing method) for an automatic dispensing process, which is a processing method for processing surveillance videos in an automatic dispensing process. Through the processing method provided by the present disclosure, the surveillance video segments corresponding to a plurality of dispensing links can be quickly located with the prescription information including the prescription identifier as the retrieval condition, thereby realizing the visualization of each dispensing link in the automatic dispensing process, which can facilitate the recording of each dispensing link in the dispensing process. Thus, the automatic dispensing process can be conveniently traced back and checked, the efficiency of the trace back and check can be improved, and the transparency and credibility of the dispensing process can be improved.
[0030] The present disclosure also provides a surveillance system (hereinafter can be referred to as a surveillance system) for an automatic dispensing process, which is a surveillance system for processing surveillance videos in an automatic dispensing process, including a video recording end, a processing end and a service end. Through the surveillance system provided by the present disclosure, the prescription information can be read and queried, and the surveillance video segments corresponding to a plurality of dispensing links can be quickly located with the prescription information including the prescription identifier as the retrieval condition, which can provide functions such as video playing, pausing, fast forwarding, fast rewinding, etc., thereby facilitating the trace back and check of the automatic dispensing process, improving the efficiency of the trace back and check, and improving the transparency and credibility of the dispensing process.
[0031] The processing method for the automatic dispensing process disclosed in the present disclosure can also be referred to as a video processing method, a processing method, a monitoring video processing method of an automatic dispensing system, a monitoring video processing method of an automatic dispensing machine, a processing method of a dispensing process, a monitoring video processing method of a dispensing process, a video management method of an automatic dispensing process, etc.
[0032] In some examples, the monitoring video and the target picture disclosed in the present disclosure can be in color. In some examples, the monitoring video and the target picture disclosed in the present disclosure can be in black and white. Thus, the processing method disclosed in the present disclosure can be applied to different types of cameras.
[0033] Hereinafter, the present disclosure will be described in detail with reference to the accompanying drawings. Figure 1 is a schematic diagram showing an application scenario of the processing method disclosed in the present example.
[0034] In some examples, the processing method disclosed in the present disclosure can be applied to a monitoring system 10 as shown in Figure 1 In some examples, the automatic dispensing system 20 can be a system for automatically calculating and dispensing the dosage and combination of drugs. In some examples, the monitoring system 10 can monitor the automatic dispensing system 20 to realize the visualization of each dispensing link in the automatic dispensing process, and can record each dispensing link in the dispensing process. Thus, the automatic dispensing process can be traced back and checked, thereby improving the transparency and credibility of the dispensing process.
[0035] In some examples, the processing method can be applied to scenarios such as a hospital’s static dispensing center, a research institution, or a medical laboratory.
[0036] In some examples, when the automatic dispensing system 20 is used for drug dispensing and management in the hospital’s static dispensing center, the operation of the automatic dispensing system 20 can be monitored by the processing method disclosed in the present disclosure.
[0037] In some examples, in a research institution or a medical laboratory, the automatic dispensing system 20 is often used to prepare reagents or drugs, and the processing method disclosed in the present disclosure can be used to monitor the dispensing process.
[0038] In the present disclosure, the processing method applied in the above-mentioned scenarios can trace back and check the automatic dispensing process. Further, according to the result of the trace back, the operation of the automatic dispensing system 20 in each dispensing link in the dispensing process can be adjusted adaptively, thereby improving the accuracy of dispensing and the safety of drug management.
[0039] In some examples, for some special drugs (such as radioactive drugs), the use of the automatic dispensing system 20 for dispensing can reduce the contact of personnel with the drugs. Thus, the safety of the dispensing personnel can be improved.
[0040] But the present disclosure is not limited thereto, the processing method involved in the present disclosure can be applied to any scenario requiring monitoring and management of automatic dispensing process. Thus, visualization of each dispensing link in the automatic dispensing process can be realized, the monitoring video segment corresponding to each dispensing link in the dispensing process can be recorded, the automatic dispensing process can be conveniently traced back and checked, thereby improving the accuracy of drug dispensing and the safety of drug management.
[0041] Figure 2 is a flowchart showing the processing method involved in the example of the present disclosure.
[0042] In some examples, referring to Figure 2 , the processing method can include obtaining monitoring video corresponding to prescription information in the automatic dispensing process (step S100), obtaining video identification matching the monitoring video based on the monitoring video (step S200), associating the prescription information and the monitoring video based on the video identification (step S300), segmenting and intercepting the monitoring video associated with the prescription information to obtain a plurality of monitoring video segments (step S400), obtaining video segment identification matching the monitoring video segment based on the monitoring video segment (step S500), generating an identification array based on the prescription identification, the video identification and the video segment identification (step S600), and associating the identification array to the prescription information (step S700). Thus, the processing method of the present disclosure can facilitate recording of the dispensing process.
[0043] In some examples, in step S100, the monitoring video corresponding to the prescription information in the automatic dispensing process can be obtained. In some examples, the prescription information can include a prescription identification. In some examples, the prescription identification can be used to represent the uniqueness of the prescription information. In this case, the content associated with the one-to-one corresponding prescription information can be retrieved through the prescription identification. In some examples, the prescription identification can be generated based on encryption of the prescription information.
[0044] In some examples, the prescription information can also include medical credentials from a medical system (e.g., a hospital management information system), search keywords for each dispensing link, batch, department, patient name, drug type, drug dispensing time, creation time, prescription number, prescription status, doctor, bed number, drug information, log record, alarm record, video, and picture, etc. Thus, the associated content corresponding to at least one element in the prescription information can be retrieved.
[0045] Figure 3 is a flowchart showing the processing method involved in the example of the present disclosure. Figure 4 is an information flow diagram of the monitoring system 10 involved in the example of the present disclosure.
[0046] In some examples, referring toFigure 3 The acquiring the monitoring video can include detecting whether a video service is started (step S110), checking a number of cameras in response to the video service being started (step S120), starting the video monitoring of the automatic dispensing process (step S130), and ending the video monitoring of the automatic dispensing process (step S140). In this case, the monitoring video can be recorded by detecting that the video service has been started before the monitoring is performed, and the automatic dispensing process can be monitored by multiple cameras based on the monitoring requirements of the respective prescription information, so that the automatic dispensing process can be monitored from multiple angles, the monitoring comprehensiveness of multiple dispensing links in the automatic dispensing process can be improved, and the flexibility of monitoring the dispensing links corresponding to different prescription information can be improved. In addition, the starting and ending of the monitoring based on the prescription identification can facilitate the correspondence between the obtained at least one monitoring video and the prescription information.
[0047] As described above, the processing method involved in the present disclosure can be applied to the monitoring system 10. In some examples, the monitoring system 10 can be used to process the monitoring video in the automatic dispensing process. In some examples, referring to Figure 1 and Figure 4 The monitoring system 10 can include a video recording end 102, a processing end 103, and a service end 104. In some examples, referring to Figure 4 The video recording end 102, the processing end 103, and the service end 104 can exchange information with each other to complete the monitoring of the automatic dispensing process and process the monitoring video. Thus, the automatic dispensing process can be traced back and checked.
[0048] Referring to Figure 3 In some examples, in step S110, the processing end 103 can be used to detect whether a video service is started. In some examples, the video service can be a service of monitoring the automatic dispensing process and recording the monitoring video. For example, the video service can include a monitoring service of multiple cameras. In some examples, whether the video service is started can be detected before the automatic dispensing is started. In some examples, the processing end 103 can send a control instruction to the video recording end 102, and the video recording end 102 can start the video service after receiving the control instruction. In this case, the monitoring video can be recorded by detecting that the video service has been started before the monitoring is started.
[0049] Continuing to refer to Figure 3 In some examples, in step S120, the number of cameras can be checked in response to the video service being started. In some examples, the video recording end 102 can include a camera. In some examples, the processing end 103 can be in communication connection with the video recording end 102, and the processing end 103 can check the number of cameras. In some examples, the camera can be used to shoot the monitoring video.
[0050] In some examples, the monitoring video can be from a camera installed in the internal space of the automatic dispensing system 20. In this case, the monitoring video of each dispensing link in the internal space of the automatic dispensing system 20 can be obtained.
[0051] In some examples, the monitoring video can be from a camera installed in the external space of the automatic dispensing system 20. In this case, the monitoring video of the external space of the automatic dispensing system 20 can be obtained, which can be beneficial for monitoring the external operation (e.g. manual operation) on the automatic dispensing system 20.
[0052] In some examples, the monitoring video can be from a camera installed in the internal space and the external space of the automatic dispensing system 20. In this case, the monitoring video of each dispensing link and the monitoring video of the external operation on the automatic dispensing system 20 can be obtained simultaneously, which can improve the transparency and credibility of the dispensing process.
[0053] In some examples, the number of turned-on cameras can be checked. In this case, the number of monitoring videos can be obtained according to the number of turned-on cameras.
[0054] In some examples, the number of cameras that need to be turned on corresponding to the prescription information can be included in the configuration file. In some examples, the number of cameras that need to be turned on can be detected by checking the configuration file pre-stored in the server 104. In this way, the monitoring video can be obtained according to the monitoring requirement of each prescription information.
[0055] In some examples, the monitoring system 10 can perform IP (Internet Protocol) sniffing to check the number of turned-on cameras. For example, the number of cameras that have accessed the network of the monitoring system 10 can be checked.
[0056] In some examples, the number of monitoring videos (i.e. the number of monitoring videos) can be the same as the number of turned-on cameras. In this case, on the premise of determining the number of turned-on cameras, whether the monitoring system 10 is running normally can be judged according to the number of finally obtained monitoring videos, for example, if the number of monitoring videos is the same as the number of turned-on cameras, the monitoring system 10 is running normally; if the number of monitoring videos is not the same as the number of turned-on cameras, the monitoring system 10 has a fault.
[0057] In some examples, the number of cameras can be 1. In this way, one monitoring video can be obtained.
[0058] In some examples, the number of cameras can be multiple, for example, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, or 16, etc. In this case, multiple monitoring videos can be obtained, thereby improving the comprehensiveness of monitoring the automatic dispensing process. However, the present disclosure is not limited thereto, and in some examples, the number of cameras can be set according to the monitoring requirements.
[0059] In some examples, the key monitoring area of the camera can be determined according to the monitoring requirements.
[0060] In some examples, the key monitoring area can include all areas where the automatic dispensing system 20 performs dispensing operations. In this case, the coverage of the monitoring can be increased.
[0061] In some examples, the key monitoring area can include specific partial areas where each dispensing link performs dispensing operations. In this case, each dispensing link can be monitored, the pertinence of the monitoring can be improved, more operation details can be monitored, and the verification can be facilitated.
[0062] In some examples, each dispensing link can include taking a medicine bottle, opening a cap, drawing liquid, shaking a bottle, taking a syringe, dispensing liquid, taking a medicine bag, injecting liquid into a medicine bag, shaking a bottle, mixing liquid, sealing a bag, labeling, or dispensing medicine, etc. In some examples, the key monitoring area can include a specific area where a certain link performs dispensing operations, for example, an area where the drawing liquid operation is performed in the drawing liquid link. In some examples, the key monitoring area can include areas where multiple dispensing links perform dispensing operations, for example, the operation areas of the taking medicine bag link and the liquid injecting into medicine bag link.
[0063] In some examples, the number of cameras can be the same as the number of dispensing links in the automatic dispensing process. In some examples, each camera can correspond to monitoring each dispensing link. In this way, the key monitoring area corresponding to each dispensing link can be monitored.
[0064] In some examples, the number of cameras can be more than the number of dispensing links. In this way, the comprehensiveness of monitoring multiple dispensing links in the automatic dispensing process can be improved.
[0065] In some examples, one camera can be arranged in the internal space of the automatic dispensing system 20. In this way, one monitoring video corresponding to multiple dispensing links can be obtained.
[0066] In some examples, multiple cameras can be arranged in the internal space of the automatic dispensing system 20. In this way, multiple monitoring videos of each dispensing link can be obtained.
[0067] In some examples, one dispensing link can correspond to one camera. Thus, one single monitoring video corresponding to one single dispensing link can be obtained.
[0068] In some examples, one dispensing link can correspond to multiple cameras. In this case, multi-angle monitoring videos of one dispensing link can be obtained, and thus the accuracy of monitoring can be improved.
[0069] In some examples, one camera can be arranged in the external space of the automatic dispensing system 20. In some examples, multiple cameras can be arranged in the external space of the automatic dispensing system 20.
[0070] In some examples, multiple cameras can be arranged in the internal and external space of the automatic dispensing system 20. In this case, monitoring videos of each dispensing link and monitoring videos of the external operation of the automatic dispensing system 20 can be obtained simultaneously, and thus the transparency and credibility of the dispensing process can be improved.
[0071] In some examples, the number of cameras can be less than the number of dispensing links.
[0072] Continuing to refer to Figure 3 In some examples, in step S130, the video monitoring of the automatic dispensing process can be started.
[0073] In some examples, the camera can be controlled to start the video monitoring based on the first received prescription identifier. In this case, the starting of the monitoring based on the prescription identifier can facilitate the correspondence between the obtained at least one monitoring video and the prescription information.
[0074] In some examples, the server 104 can generate the prescription identifier in advance before the start of the automatic dispensing process. In some examples, the server 104 can transmit the prescription identifier to the processing end 103.
[0075] In some examples, the automatic dispensing system 20 can transmit a start instruction to the processing end 103. The start instruction can represent an instruction to start dispensing. Thus, the processing end 103 can obtain the starting time of the automatic dispensing process.
[0076] In some examples, when one dispensing process of the automatic dispensing system 20 starts, the processing end 103 can transmit the prescription identifier to the recording end 102.
[0077] In some examples, the recording end 102 can control the camera to start the video monitoring based on the first received prescription identifier. In this case, the starting of the video monitoring based on the prescription identifier can facilitate the correspondence between the obtained at least one monitoring video and the prescription information.
[0078] In some examples, the video recording end 102 can start recording of each camera and record the time when each camera starts recording. Thus, the starting time of each monitoring video can be obtained.
[0079] In some examples, the time when each camera starts recording can be the same. In some examples, the time when each camera starts recording can be different. Thus, the starting of each camera can be controlled according to actual needs.
[0080] In some examples, the starting of the video monitoring of the automatic dispensing process by the cameras can be controlled in response to the number of cameras satisfying a preset condition and based on the first received prescription identifier.
[0081] In some examples, the preset condition can be determined according to the prescription information. In some examples, the preset condition can be that the number of cameras to be started satisfies the monitoring requirement corresponding to the prescription information. In some examples, each camera can be controlled at the same time so that the number of started cameras satisfies the preset condition. In this case, the number of cameras to be started can be automatically controlled based on the monitoring requirement of each prescription information to monitor the automatic dispensing process from multiple positions, thereby improving the comprehensiveness of monitoring of multiple dispensing links in the automatic dispensing process.
[0082] Continuing to refer to Figure 3 In some examples, in step S140, the video monitoring of the automatic dispensing process can be ended. In some examples, the video monitoring of the automatic dispensing process by the cameras can be controlled to end based on the second received prescription identifier. In this case, the ending of the monitoring based on the prescription identifier can facilitate the correspondence between the obtained at least one monitoring video and the prescription information. In some examples, the second received prescription identifier can be the same as the first received prescription identifier. In this case, the starting and ending of the monitoring based on the prescription identifier can facilitate the correspondence between the obtained at least one monitoring video and the prescription information.
[0083] Figure 5 is a flowchart illustrating the ending of the video monitoring of the automatic dispensing process according to an example of the present disclosure.
[0084] In some examples, referring to Figure 5 The ending of the video monitoring of the automatic dispensing process can include that the automatic dispensing system 20 transmits an ending instruction to the processing end 103 (step S1401), judges whether the working state is normal (step S1402), the processing end 103 receives the automatic stopping instruction of the automatic dispensing system 20 and transmits the prescription identifier to the video recording end 102 again (step S1403), and the processing end 103 receives the automatic stopping instruction or the manual stopping instruction of the automatic dispensing system 20 and transmits the prescription identifier to the video recording end 102 again (step S1404). Thus, the video monitoring can be ended.
[0085] In some examples, in step S1401, the automatic dispensing system 20 can transmit an end instruction to the processing terminal 103. Thus, the processing terminal 103 can obtain the end time of the automatic dispensing process.
[0086] In some examples, in step S1402, the automatic dispensing system 20 can determine whether the working state is normal, and if yes, execute step S1403, and if no, execute step S1404.
[0087] In some examples, the end instruction can be an automatic stop instruction. In some examples, if the working state of the automatic dispensing system 20 is normal, the automatic stop instruction can be transmitted to the processing terminal 103 at the end of the dispensing process.
[0088] In some examples, if the working state of the automatic dispensing system 20 is abnormal (i.e., a fault occurs), for example, the cap of the medicine bottle is not opened, etc., the automatic dispensing system 20 can send the automatic stop instruction to the processing terminal 103 at the end of the dispensing process.
[0089] In some examples, the end instruction can be a manual stop instruction. In some examples, if the working state of the automatic dispensing system 20 is abnormal (i.e., a fault occurs), for example, the medicine bottle is not taken, the wrong medicine is taken, etc., the automatic dispensing system 20 can send the manual stop instruction to the processing terminal 103 at the end of the dispensing process.
[0090] Continuing to refer to Figure 5 In some examples, in step S1403, when the working state of the automatic dispensing system 20 is normal, the processing terminal 103 can receive the automatic stop instruction of the automatic dispensing system 20 and transmit the prescription identification to the recording terminal 102 again. Thus, the recording terminal 102 can obtain the end time of the automatic dispensing process.
[0091] Continuing to refer to Figure 5 In some examples, in step S1404, when the working state of the automatic dispensing system 20 is abnormal, the processing terminal 103 can receive the automatic stop instruction of the automatic dispensing system 20 and transmit the prescription identification to the recording terminal 102 again. In some examples, when the working state of the automatic dispensing system 20 is abnormal, the processing terminal 103 can receive the manual stop instruction of the automatic dispensing system 20 and transmit the prescription identification to the recording terminal 102 again. Thus, the recording terminal 102 can obtain the end time of the automatic dispensing process.
[0092] In some examples, the recording terminal 102 can control the camera to end the video monitoring of the automatic dispensing process based on the received prescription identification again. In this case, the end of the video monitoring based on the prescription identification can make the obtained at least one monitoring video correspond to the prescription information.
[0093] In some examples, the video recording end 102 can end the recording of each camera and record the time when each camera ends recording. In this way, the end time of each monitoring video can be obtained.
[0094] In some examples, the time when each camera ends recording can be the same. In some examples, the time when each camera ends recording can be different. In this way, the end time of each camera can be controlled according to actual needs.
[0095] In some examples, the video recording end 102 can upload the monitoring video to the server 104 in real time. In this way, the timeliness of storing the monitoring video can be improved.
[0096] In some examples, the video recording end 102 can record the failure of the automatic dispensing system 20, and the processing end 103 can associate the failure record with the prescription information and the monitoring video. In this way, the abnormal dispensing process can be recorded, and it is convenient to trace and check.
[0097] Referring back to Figure 2 In some examples, in step S200, the video identification matching the monitoring video can be obtained based on the monitoring video. In some examples, the processing end 103 can obtain the video identification generated at the server 104. In some examples, the server 104 can generate the video identification corresponding to the prescription information and matching the monitoring video in advance according to the prescription information before the video monitoring starts.
[0098] In some examples, the video identification can include the prescription identification. In this case, the video identification can have a corresponding relationship with the prescription information, so that it is convenient to associate the video identification and the prescription information subsequently.
[0099] In some examples, the video identification can include a first time identification, and the first time identification can be used to represent the monitoring time of the monitoring video. In this case, the information of the monitoring time of the monitoring video can be obtained through the video identification.
[0100] In some examples, the video identification can include the prescription identification and the first time identification. In this case, the monitoring video can be indexed through the video identification, and the prescription information and the monitoring video of the automatic dispensing process can be one-to-one corresponding through the prescription identification, so that the monitoring video corresponding to the prescription information can be processed conveniently and quickly.
[0101] In some examples, the first time identification can include the time information of the monitoring video. In some examples, the first time identification can include the start time of the monitoring video. In some examples, the first time identification can also include the end time of the monitoring video.
[0102] In some examples, the first time identifier can include a start time and an end time of the monitoring video. In some examples, the first time identifier can include any one monitoring time in the middle of the monitoring video. In some examples, the first time identifier can include a start time of the automatic dispensing process corresponding to the prescription information.
[0103] In some examples, the video identifier can further include a camera position identifier. In some examples, the camera position identifier can represent the uniqueness of the installation position of the camera. In some examples, the server 104 can generate the video identifier including the camera position identifier according to the number of cameras and transmit it to the processing end 103. Wherein, the number of cameras can be multiple. In this case, based on the multiple cameras, multiple monitoring videos corresponding to the prescription information can be obtained, and based on the camera position identifier, the camera positions for shooting each monitoring video can be distinguished, and thus the monitoring focus areas of each monitoring video can be distinguished.
[0104] In some examples, the video identifier can be encrypted. Thus, the data security can be protected.
[0105] Referring to Figure 2 In some examples, in step S300, the prescription information and the monitoring video can be associated. In some examples, the prescription information and the monitoring video can be associated based on the video identifier. In some examples, the video identifier can include the prescription identifier. In other words, the video identifier can have a corresponding relationship with the prescription information. In some examples, the file of the monitoring video can be named by the video identifier. In this case, the prescription information and the monitoring video can be associated through the video identifier, the prescription information and the monitoring video of the automatic dispensing process can be one-to-one corresponding, and the monitoring video corresponding to the prescription information can be conveniently retrieved according to the prescription information.
[0106] Referring to Figure 2 In some examples, in step S400, the monitoring video associated with the prescription information can be segmented and intercepted to obtain multiple monitoring video segments. In some examples, the multiple monitoring video segments can correspond to multiple dispensing links in the automatic dispensing process one by one. Thus, the monitoring video segments corresponding to each dispensing link in the dispensing process can be obtained, and the monitoring video segments corresponding to each dispensing link can be conveniently retrieved according to the prescription information.
[0107] In some examples, the multiple dispensing links corresponding to the multiple monitoring videos can be determined according to the monitoring focus areas of the multiple monitoring videos, and segmented and intercepted.
[0108] In some examples, one monitoring video (i.e., a single monitoring video) can be acquired. The single monitoring video can be segmented and clipped according to a plurality of dispensing links corresponding to the single monitoring video. In some examples, a plurality of monitoring videos can be acquired. The plurality of monitoring videos can be segmented and clipped according to a plurality of dispensing links corresponding to the plurality of monitoring videos.
[0109] In some examples, one monitoring video can correspond to a plurality of dispensing links. In some examples, one dispensing link can correspond to a plurality of monitoring videos. In some examples, a monitoring video segment corresponding to one dispensing link can be from a plurality of monitoring videos used for segmentation and clipping.
[0110] In some examples, the processing end 103 can obtain a plurality of monitoring video segments. Specifically, the processing end 103 can obtain a plurality of monitoring video segments corresponding to a plurality of dispensing links.
[0111] Figure 6 FIG. 1 is a flowchart illustrating a first embodiment of a processing method according to the present disclosure, which is used to obtain a plurality of monitoring video segments.
[0112] In some examples, referring to Figure 6 , the obtaining of the plurality of monitoring video segments can include obtaining an initial time segment of dispensing of each dispensing link based on the first time identifier and a dispensing speed of each dispensing link (step S410), clipping a plurality of initial pictures corresponding to the initial time segment in the monitoring video (step S420), obtaining at least one target picture based on the plurality of initial pictures and at least one pre-stored picture (step S430), obtaining a target time segment of each dispensing link based on a target moment of the target picture (step S440), and segmenting and clipping the monitoring video based on the target time segment to obtain the plurality of monitoring video segments (step S450). In this case, the initial time segment of each dispensing link, i.e., the estimated time segment, can be calculated based on the first time identifier and the dispensing speed of each dispensing link, and then a plurality of pictures are clipped in the initial time segment and compared with the pre-stored picture. Since the pre-stored picture is a calibrated picture, the accuracy of the target picture can be improved based on the pre-stored picture as a reference for comparison, and the accuracy of the starting moment of each dispensing link can be improved, thereby improving the accuracy of the target time segment of each dispensing link, i.e., improving the accuracy of the judgment of the actual time segment of each dispensing link, and thus improving the accuracy of the clipping of the monitoring video segment corresponding to each dispensing link.
[0113] Referring to Figure 6In some examples, in step S410, the initial time period of each dispensing link can be obtained based on the first time identifier and the dispensing speed of each dispensing link. In some examples, the starting time of the automatic dispensing process corresponding to the prescription information can be taken as the first time identifier. In this case, the initial time period of each dispensing link, i.e., the estimated time period, can be calculated based on the first time identifier and the dispensing speed of each dispensing link.
[0114] In some examples, the dispensing speed of each dispensing link can be calculated based on the moving speed and the path to be passed of the dispensing equipment (e.g., a mechanical hand) in the automatic dispensing system 20.
[0115] In other examples, the dispensing speed of each dispensing link can be calculated based on the starting time of each dispensing link corresponding to the previous prescription information in the automatic dispensing process. For example, the dispensing speed of each dispensing link can be calculated according to the time interval between the starting time of the dispensing link corresponding to the previous prescription information and the starting time of the next dispensing link.
[0116] Continuing to refer to Figure 6 In some examples, in step S420, a plurality of initial pictures corresponding to the initial time period in the monitoring video can be intercepted. For example, a plurality of initial pictures of a monitoring sub-video in the monitoring video corresponding to the initial time period can be intercepted. In this way, the plurality of initial pictures to be processed can be obtained. In some examples, the monitoring sub-video can be a part of the monitoring video for intercepting the plurality of initial pictures.
[0117] In some examples, the initial time period can be the time period range of the monitoring video for intercepting the initial pictures, i.e., the time range of the monitoring sub-video. In this way, the starting time or the ending time of each dispensing link can be determined conveniently. In some examples, the starting time of the next dispensing link can be the ending time of the previous dispensing link.
[0118] In some examples, the initial time period can be the entire time interval corresponding to each dispensing link, i.e., the estimated target time period. In some examples, the initial time period can be determined according to the preset time interval corresponding to each dispensing link. In some examples, the preset time interval corresponding to each dispensing link can be the entire time interval of each dispensing link corresponding to the previous prescription information. For example, the preset time interval corresponding to each dispensing link can be the entire time interval of each dispensing link corresponding to the previous prescription information.
[0119] In some examples, the number of initial pictures can be one. In some examples, the initial picture can be the picture of the first frame of the estimated monitoring video segment, i.e., the entire monitoring video interval of each dispensing link. In this case, the starting time of each dispensing link can be determined based on one initial picture.
[0120] In some examples, the initial picture can be a picture of the last frame of the estimated monitoring video segment. In this case, the end time of the dispensing link can be determined based on the initial picture.
[0121] In some examples, the number of initial pictures can be multiple, such as 2, 3, 4, 5, 10, 100, etc., which is not limited here and can be determined according to actual needs. In this case, the entire time interval of the dispensing link can be determined based on multiple initial pictures.
[0122] Continuing to refer to Figure 6 In some examples, in step S430, at least one target picture can be obtained based on the multiple initial pictures and at least one pre-stored picture.
[0123] In some examples, the target picture can be a picture for representing the monitoring focus of the monitoring video segment. In some examples, the monitoring focus of the monitoring video segment can include a monitoring focus area corresponding to the monitoring video segment. In some examples, the target picture can be a key point picture representing the operation characteristics of each dispensing link in each monitoring video segment. In this case, the information of the corresponding monitoring video segment can be quickly obtained by browsing the target picture.
[0124] In some examples, the key point picture can include a picture of taking a medicine bottle, a picture of opening a cover, a picture of drawing liquid, a picture of shaking a bottle, a picture of taking a syringe, a picture of dispensing liquid, a picture of taking a medicine bag, a picture of injecting liquid into a medicine bag, a picture of shaking a bottle, a picture of mixing liquid, a picture of sealing a bag, a picture of sticking a label, and a picture of dispensing medicine, etc.
[0125] In some examples, the target picture can be a picture of the start time of the monitoring video segment. In some examples, the target picture can be a picture of the end time of the monitoring video segment. In some examples, the target picture can include pictures of the start time and the end time of the monitoring video segment.
[0126] In some examples, the pre-stored picture can be a labeled picture. In this case, since the pre-stored picture is a labeled picture, the accuracy of the target picture can be improved based on the pre-stored picture as a reference for comparison.
[0127] In some examples, the pre-stored picture can be a picture corresponding to the start time of each dispensing link that has been labeled. In some examples, the pre-stored picture can be a picture corresponding to the end time of each dispensing link that has been labeled. In some examples, the pre-stored picture can be a picture corresponding to the start time and the end time of each dispensing link that has been labeled.
[0128] In some examples, the pre-stored picture can be a calibrated picture representing the operation characteristics of each dispensing link. In some examples, the method of calibrating the pre-stored picture can include manual calibration and machine learning algorithm calibration. In some examples, the pre-stored picture can be a target picture of each dispensing link corresponding to the previous prescription information. For example, the pre-stored picture can be a target picture of each dispensing link corresponding to the previous prescription information.
[0129] In some examples, the number of pre-stored pictures can be one.
[0130] In some examples, the number of pre-stored pictures can be multiple, such as 2, 3, 4, 5, 10, 100, etc., which is not limited here and can be determined according to actual needs. In this case, when multiple pre-stored pictures are used as a basis for comparison, the accuracy and reliability of obtaining the target picture can be improved.
[0131] In some examples, each initial picture can be compared with the pre-stored picture to obtain the similarity between each initial picture and the pre-stored picture. In some examples, a single dispensing link can have multiple corresponding initial pictures. In some examples, each initial picture can be compared with the corresponding pre-stored picture to obtain the similarity between each initial picture and the pre-stored picture. In some examples, the method of obtaining the similarity between each initial picture and the pre-stored picture can include a machine learning algorithm.
[0132] In some examples, the initial picture corresponding to the highest similarity can be selected as the target picture in response to the highest similarity. In some examples, the initial picture corresponding to the similarity not less than the preset threshold can be selected as the target picture in response to the similarity not less than the preset threshold.
[0133] In some examples, the target picture can be selected in response to the highest similarity and the similarity not less than the preset threshold. In some examples, the initial picture corresponding to the highest similarity and the similarity not less than the preset threshold can be selected as the target picture. In this case, by selecting the initial picture with the highest similarity and the similarity not less than the preset threshold as the target picture, the accuracy of obtaining the target picture can be improved.
[0134] In some examples, the target picture can be one of the multiple initial pictures with the highest similarity and the similarity not less than the preset threshold. In some examples, the target picture can be one of the multiple initial pictures with the highest similarity. In some examples, the target picture can be one of the multiple initial pictures with the highest similarity and the similarity not less than the preset threshold, which corresponds to the closest starting time.
[0135] In some examples, the preset threshold of the similarity can be one.
[0136] In some examples, the preset threshold of the similarity can be multiple, such as 2, 3, 4 or others. In this case, different preset thresholds can be adopted according to actual needs to select the target picture.
[0137] In some examples, the preset threshold of the similarity can be a threshold automatically set by the monitoring system 10 before starting recording, such as 70%, 75%, 80%, 85% or 90% and the like. In some examples, the preset threshold of the similarity can be a threshold manually set before starting recording, such as 70%, 75%, 80%, 85% or 90% and the like.
[0138] In some examples, if no initial picture meets the preset threshold of the similarity, the initial time period can be automatically re-selected and the initial picture can be re-selected. Further, if no initial picture meets the preset threshold of the similarity, the automatic dispensing system 20 can issue a prompt. In some examples, in response to the prompt issued by the automatic dispensing system 20, the initial picture can be manually selected.
[0139] In some examples, the number of target pictures can be 1. In some examples, the starting time of the dispensing link can be determined based on the 1 target picture. In some examples, the ending time of the dispensing link can be determined based on the 1 target picture.
[0140] In some examples, the number of target pictures can be multiple, such as 2, 3, 4, 5, 10, 100 and the like, which is not limited herein. In this case, the entire time interval of the dispensing link can be determined based on multiple target pictures.
[0141] In some examples, the target time corresponding to the target picture can be recorded. In some examples, the target time can be the monitoring time corresponding to the target picture.
[0142] Continuing to refer to Figure 6 In some examples, in step S440, the target time period can be obtained based on the target time, that is, the target time period of each dispensing link can be obtained based on the target time of multiple target pictures. In this case, when the pre-stored picture is used as the reference for comparison, the accuracy of obtaining the target picture can be improved, and further the accuracy of obtaining the starting time of each dispensing link can be improved, thereby improving the accuracy of obtaining the target time period of each dispensing link, that is, improving the accuracy of judging the actual time period of each dispensing link.
[0143] Continuing to refer to Figure 6 In some examples, in step S450, the monitoring video can be segmented and intercepted based on the target time period to obtain multiple monitoring video segments. In some examples, the multiple monitoring video segments correspond one-to-one to the multiple dispensing links in the automatic dispensing process.
[0144] In some examples, the plurality of dispensing links can include taking a medicine bottle, opening a cap, drawing liquid, shaking a bottle, taking a syringe, dispensing liquid, taking a medicine bag, injecting liquid into a medicine bag, shaking a bottle, mixing liquid, sealing a bag, labeling, or dispensing medicine, etc.
[0145] In some examples, a second time identifier can be generated to represent a monitoring time point of the monitoring video segment. In some examples, the second time identifier can include time information of the monitoring video segment.
[0146] In some examples, the second time identifier can include a start time point of the monitoring video segment. In some examples, the second time identifier can include an end time point of the monitoring video segment. In some examples, the second time identifier can include a start time point and an end time point of the monitoring video segment. In some examples, the second time identifier can include any one of the monitoring time points in the middle of the monitoring video segment. In some examples, the second time identifier can include a start time point of a dispensing link corresponding to the monitoring video segment. In some examples, the second time identifier can include at least one target time point determined based on at least one target picture corresponding to the monitoring video segment.
[0147] In some examples, at least one target picture can be used as a cover thumbnail of the monitoring video segment. For example, a picture at the start time point of the monitoring video segment can be used as a cover thumbnail of the monitoring video segment.
[0148] In some examples, a picture at the end time point of the monitoring video segment can be used as a cover thumbnail of the monitoring video segment. In some examples, a plurality of target pictures can be spliced into a cover thumbnail of the monitoring video segment. In some examples, pictures at the start time point and the end time point of the monitoring video segment can be spliced into a cover thumbnail of the monitoring video segment.
[0149] In some examples, a plurality of monitoring video segments can be shrunk into the same page. In this case, since the monitoring video segments use target pictures as cover thumbnails, the corresponding monitoring video segment of each dispensing link can be quickly found by browsing the cover thumbnails, thereby improving the backtracking efficiency and checking efficiency of each dispensing link.
[0150] In some examples, the processing end 103 can generate corresponding target pictures according to the monitoring videos. In some examples, the processing end 103 can use at least one target picture as a cover thumbnail of each monitoring video segment. In some examples, the processing end 103 can shrink a plurality of monitoring video segments into the same page. In some examples, the processing end 103 can upload the plurality of monitoring video segments and at least one target picture corresponding thereto to the service end 104.
[0151] Figure 7is a flow chart illustrating a second embodiment of the processing method according to the present disclosure.
[0152] In some examples, referring to Figure 7 , the plurality of monitoring video segments can include obtaining an initial time period for each dispensing link based on the first time identifier, the re-dispensing time of the automatic dispensing system 20, and the dispensing speed of each dispensing link (step S401), obtaining a plurality of initial pictures corresponding to the initial time period in the monitoring video (step S402), obtaining at least one target picture based on the plurality of initial pictures and at least one pre-stored picture (step S403), obtaining a target time period for each dispensing link based on the target time of the target picture (step S404), and segmenting and cutting the monitoring video based on the target time period to obtain the plurality of monitoring video segments (step S405).
[0153] In some examples, in step S401, the initial time period for each dispensing link can be obtained based on the first time identifier, the re-dispensing time of the automatic dispensing system 20, and the dispensing speed of each dispensing link.
[0154] In some examples, when the automatic dispensing system 20 fails, if the automatic dispensing system 20 can recover to re-dispense, the re-dispensing time can be recorded and transmitted to the processing end 103. In some examples, the processing end 103 can recalculate the dispensing speed of each dispensing link based on the start time of the automatic dispensing process and the re-dispensing time of the automatic dispensing system 20.
[0155] In other examples, when the automatic dispensing system 20 fails, if the automatic dispensing system 20 cannot recover to re-dispense, manual stopping can be performed, and the time of manual stopping can be recorded and transmitted to the processing end 103. In some examples, the processing end 103 can recalculate the dispensing speed of each dispensing link based on the start time of the automatic dispensing process and the manual stopping time of the automatic dispensing system 20.
[0156] In some examples, the start time or end time of each dispensing link can be manually determined.
[0157] In some examples, step S402 can be the same as step S420. In some examples, step S403 can be the same as step S430. In some examples, step S404 can be the same as step S440. In some examples, step S405 can be the same as step S450.
[0158] Referring back to Figure 2In some examples, in step S500, the video segment identifier matching the monitoring video segment can be obtained based on the monitoring video segment. In some examples, the video segment identifier can be used to represent the uniqueness of the monitoring video segment.
[0159] In some examples, the video identifier can be encrypted. In some examples, the video segment identifier can include the prescription identifier, the video identifier and the second time identifier. In this case, when the video identifier has been encrypted, the video segment identifier includes the prescription identifier can make the video segment identifier related to the prescription information, facilitating the association of the video segment identifier with the prescription information.
[0160] In some examples, the video segment identifier can include the prescription identifier and the second time identifier. In this case, the video segment identifier can be made related to the prescription information, facilitating the association of the video segment identifier with the prescription information.
[0161] In some examples, the video identifier can not be encrypted. In some examples, the video identifier can include the prescription identifier. In some examples, the video segment identifier can include the video identifier and the second time identifier. In this case, the video segment identifier can be made related to the prescription information, facilitating the association of the video segment identifier with the prescription information.
[0162] In some examples, the video segment identifier can be a picture identifier of the target picture corresponding to the monitoring video segment. In some examples, the picture identifier can be used to represent the uniqueness of the target picture. In some examples, the video segment identifier can be used to name the file of the monitoring video segment. In some examples, the video segment identifier can be used to name the file of the target picture. In this way, the target picture can be indexed, facilitating the retrieval of the corresponding target picture according to the prescription information.
[0163] In some examples, the processing end 103 can generate the video segment identifier based on the prescription identifier, the video identifier and the second time identifier.
[0164] As described above, the prescription information can include the retrieval keywords of each dispensing link. In some examples, the retrieval keywords of each dispensing link can include taking a medicine bottle, opening a cap, drawing liquid, shaking a bottle, taking a syringe, dispensing liquid, taking a medicine bag, injecting liquid into a medicine bag, shaking a bottle, mixing liquid, sealing a bag, labeling or dispensing medicine, etc. In some examples, the retrieval keywords of each dispensing link can be determined according to specific prescription information. In this case, by taking the prescription information including the retrieval keywords of each dispensing link as a retrieval condition, the monitoring video segment corresponding to the retrieved dispensing link can be quickly located.
[0165] In some examples, the video identifier can be encrypted. In some examples, the video segment identifier can be encrypted based on the prescription identifier, the video identifier, the second time identifier, and the random number to correspond to the prescription information. In this case, the video segment identifier can be related to the prescription information based on the prescription identifier when the video identifier has been encrypted, so as to associate the video segment identifier with the prescription information. In addition, the monitoring video segment can be indexed by the video segment identifier, so as to facilitate the searching of the monitoring video segment corresponding to each dispensing link of the prescription information. When the prescription information further comprises the search keywords of each dispensing link, the monitoring video segment corresponding to the searched dispensing link can be quickly located by taking the prescription information comprising the search keywords of each dispensing link as the search condition, i.e., the monitoring video segment of the dispensing link matching the keywords in the search condition can be obtained. Thus, the searching of the monitoring video segment corresponding to each dispensing link of the prescription information can be facilitated. Furthermore, the video segment identifier can be obtained by the encryption method to protect the data security.
[0166] In some examples, the video identifier can not be encrypted. In some examples, the video identifier can comprise the prescription identifier. In some examples, the video segment identifier can be encrypted based on the video identifier, the second time identifier, and the random number. In some examples, the video segment identifier can correspond to the prescription information. In this case, the video segment identifier can be related to the prescription information, so as to associate the video segment identifier with the prescription information.
[0167] In some examples, the video identifier and the video segment identifier can be encrypted. In some examples, the identifier array can be generated based on the prescription identifier, the video identifier, and the video segment identifier in step S600. In this case, the identifier array can be related to the prescription information based on the prescription identifier when the video identifier and the video segment identifier have been encrypted, so as to associate the identifier array with the prescription information.
[0168] In some examples, the video identifier and the video segment identifier can not be encrypted. In some examples, the video identifier can comprise the prescription identifier. In some examples, the video segment identifier can comprise the prescription identifier.
[0169] In some examples, the identifier array can be generated based on the video identifier and the video segment identifier in step S600. In this case, the identifier array can be related to the prescription information when the video identifier and the video segment identifier are not encrypted, so as to associate the identifier array with the prescription information.
[0170] In some examples, the processing end 103 can generate the identifier array and transmit the identifier array to the service end 104.
[0171] In some examples, in step S700, the identification array can be associated to the prescription information. In this case, the prescription information can be corresponded to the monitoring video and the plurality of monitoring video segments respectively, the prescription information can be used as a retrieval condition to quickly locate the monitoring video segments corresponding to the plurality of dispensing links, thereby realizing the visualization of each dispensing link in the automatic dispensing process, which can facilitate the recording of each dispensing link in the dispensing process, thereby facilitating the backtracking and checking of the automatic dispensing process, improving the efficiency of backtracking and checking, and improving the transparency and credibility of the dispensing process.
[0172] In some examples, the server 104 can mount the identification array behind the data of the prescription information, that is, associate the identification array to the prescription information.
[0173] In some examples, the monitoring system 10 can include the video recording end 102, the processing end 103 and the server 104.
[0174] In some examples, the video recording end 102 can be configured to obtain the monitoring video corresponding to the prescription information in the automatic dispensing process. In some examples, the prescription information can include a prescription identification for characterizing the uniqueness of the prescription information.
[0175] In some examples, the video recording end 102 can include a camera or other video capture device. In this case, the monitoring video corresponding to the prescription information in the automatic dispensing process can be obtained by the video recording end 102 for storage.
[0176] In some examples, the video recording end 102 can include video recording software. Thus, the camera or other image capture device of the video recording end 102 can be controlled by the video recording software.
[0177] In some examples, the processing end 103 can be configured to obtain a video identification matched with the monitoring video based on the monitoring video. In some examples, the video identification can include a first time identification for characterizing the monitoring time of the monitoring video and the prescription identification.
[0178] In some examples, the processing end 103 can be configured to associate the prescription information and the monitoring video based on the video identification, and segment and intercept the monitoring video associated with the prescription information to obtain a plurality of monitoring video segments. In some examples, the plurality of monitoring video segments can correspond one-to-one to a plurality of dispensing links in the automatic dispensing process.
[0179] In some examples, the processing end 103 can include a host computer and host computer software. In some examples, the host computer can be a computer for realizing the functions of the processing end 103. In some examples, the host computer software can be software for realizing the functions of the processing end 103. In some examples, the host computer software can be stored and run on the host computer 104.
[0180] In some examples, the processing terminal 103 can be further configured to acquire the video segment identification matching the monitoring video segment based on the monitoring video segment.
[0181] In some examples, the processing terminal 103 can generate the identification array based on the prescription identification, the video identification, and the video segment identification.
[0182] In some examples, the processing terminal 103 can transmit the monitoring video segment, the video segment identification, the target picture, and the identification array, etc. to the server 104.
[0183] In some examples, the processing terminal 103 can read the data on the server 104.
[0184] In some examples, the processing terminal 103 can read and query the prescription information. In some examples, after the server 104 associates the identification array to the prescription information, the processing terminal 103 can quickly locate the monitoring video segment corresponding to the multiple dispensing links with the prescription information including the prescription identification as the retrieval condition. In some examples, the processing terminal 103 can provide functions such as video playing, pausing, fast forwarding, fast rewinding, etc. Thus, it is convenient to backtrack and check the automatic dispensing process, and the transparency and credibility of the dispensing process can be improved.
[0185] In some examples, the processing terminal 103 can be connected to external information systems, such as the information system of a hospital, a cloud storage center, or a cloud computing center. Thus, data transmission and sharing can be realized.
[0186] In some examples, the processing terminal 103 can identify and verify the medicine in the monitoring video through image processing technology. Thus, the safety of dispensing can be further improved.
[0187] In some examples, the server 104 can be configured to associate the identification array to the prescription information. Thus, the prescription information can correspond to the monitoring video and the multiple monitoring video segments respectively.
[0188] In some examples, the server 104 can include one or more servers, such as 1, 2, 3, 4, 5, 10, etc. without limitation, and the number of servers can be configured according to actual needs.
[0189] In some examples, the server 104 can include video recording software.
[0190] In some examples, the server 104 can include a data storage device, such as a mobile hard disk, an optical disk, or a memory card, etc.
[0191] In some examples, the server 104 can store data such as prescription information, configuration files, monitoring videos, video identifications, monitoring video segments, video segment identifications, target pictures, or identification arrays.
[0192] In some examples, the server 104 can generate a video identification. In some examples, the server 104 can generate a video identification according to the number of cameras and transmit the video identification to the processing terminal 103.
[0193] In some examples, the server 104 can encrypt the prescription information to generate a corresponding prescription identification. In this way, the data security can be protected.
[0194] Figure 8 is a structural block diagram illustrating a monitoring system 10 for an automatic dispensing process according to an example of the present disclosure.
[0195] In some examples, referring to Figure 8 , the monitoring system 10 can further include a sensor module 801.
[0196] In some examples, the sensor module 801 can detect abnormal situations and alarm. The abnormal situations can include, for example, that the cap of a medicine bottle is not opened, that a medicine bottle is not taken, and that a wrong medicine is taken. In this way, the automatic dispensing system 20 can be assisted in monitoring. In some examples, the processing terminal 103 can process the alarm records transmitted by the sensor module 801 and upload them to the server 104. In some examples, the processing terminal 103 can quickly retrieve the alarm records of the corresponding dispensing link according to the prescription information. In this case, the automatic dispensing process can be conveniently traced back and checked, thereby improving the efficiency of the trace back and check, and further improving the transparency and credibility of the dispensing process.
[0197] In some examples, referring to Figure 8 , the monitoring system 10 can further include a router 802.
[0198] In some examples, the router 802 can perform IP sniffing to check the number of cameras.
[0199] Examples of the present disclosure also disclose an electronic device including a processor and a memory. The processor executes a program stored in the memory to implement one or more steps of the above processing method.
[0200] Examples of the present disclosure also disclose a computer-readable storage medium, which can store at least one instruction, and the at least one instruction is executed by a processor to implement one or more steps of the above processing method.
[0201] The processing method for an automatic dispensing process provided by the present disclosure is used for processing monitoring videos in the automatic dispensing process. In step S100, the monitoring videos corresponding to the prescription information in the automatic dispensing process can be obtained. In step S200, the video identifiers matched with the monitoring videos can be obtained. In step S300, the prescription information and the monitoring videos can be associated. Thus, the prescription information and the monitoring videos in the automatic dispensing process can be one-to-one corresponding. In step S400, the monitoring video segments corresponding to the multiple dispensing links in the automatic dispensing process can be obtained. In step S500, the video segment identifiers matched with the monitoring video segments can be obtained. In this case, the monitoring video segments corresponding to the multiple dispensing links in the automatic dispensing process can be indexed by the video segment identifiers, so that the monitoring video segments corresponding to the multiple dispensing links in the automatic dispensing process can be searched. In step S600, the identifier array can be generated based on the prescription identifier, the video identifier, and the video segment identifier. In step S700, the identifier array can be associated with the prescription information. Thus, the prescription information can be associated with the monitoring videos and the multiple monitoring video segments, respectively.
[0202] By the processing method provided by the present disclosure, the monitoring video segments corresponding to the multiple dispensing links can be quickly located by taking the prescription information including the prescription identifier as the search condition, so that the visualization of the multiple dispensing links in the automatic dispensing process can be realized, the multiple dispensing links in the automatic dispensing process can be recorded, the automatic dispensing process can be traced back and checked, the efficiency of the tracing back and checking can be improved, and the transparency and credibility of the automatic dispensing process can be improved.
[0203] The monitoring system 10 provided by the present disclosure comprises a recording terminal 102, a processing terminal 103, and a service terminal 104. The recording terminal 102 can obtain the monitoring videos corresponding to the prescription information in the automatic dispensing process. The processing terminal 103 can obtain the video identifiers matched with the monitoring videos based on the monitoring videos, associate the prescription information and the monitoring videos based on the video identifiers, segment and intercept the monitoring videos associated with the prescription information to obtain the multiple monitoring video segments, obtain the video segment identifiers matched with the monitoring video segments based on the monitoring video segments, and generate the identifier array based on the prescription identifier, the video identifier, and the video segment identifier. The service terminal 104 can associate the identifier array with the prescription information.
[0204] By the monitoring system 10 provided by the present disclosure, the monitoring videos corresponding to the prescription information can be recorded, the prescription information can be read and inquired, and the monitoring video segments corresponding to the multiple dispensing links can be quickly located by taking the prescription information including the prescription identifier as the search condition. The processing terminal 103 can provide the functions such as video playing, pausing, fast forwarding, and fast rewinding, so that the automatic dispensing process can be traced back and checked, the transparency and credibility of the automatic dispensing process can be improved.
[0205] The various methods and techniques described above provide a number of ways to carry out the present disclosure. Of course, it should be understood that every nember of any example described above need not necessarily be implemented to achieve the various advantages described herein. Accordingly, examples can be implemented in ways not specifically described in the present disclosure. For example, functions described as being performed by one or more entities can be distributed among multiple entities. Similarly, elements described as being stored in one database can be distributed among multiple databases. Moreover, various functions can be implemented by one or more entities that are not specifically identified in the examples described above.
Claims
1. A processing method for an automated drug dispensing process, characterized in that, include: Acquire monitoring video corresponding to prescription information during the automated dispensing process, wherein the prescription information includes a prescription identifier used to uniquely characterize the prescription information; Based on the surveillance video, a video identifier matching the surveillance video is obtained, the video identifier including the prescription identifier and a first time identifier used to characterize the monitoring time of the surveillance video; The prescription information and the surveillance video are associated based on the video identifier; The monitoring video associated with the prescription information is segmented to obtain multiple monitoring video segments, and the multiple monitoring video segments correspond one-to-one with multiple dispensing steps in the automatic dispensing process; Based on the monitored video segment, obtain the video segment identifier that matches the monitored video segment; Generate an identifier array based on the prescription identifier, the video identifier, and the video segment identifier; and The identifier array is associated with the prescription information, wherein, Obtaining the multiple surveillance video segments includes: The start time of the automatic dispensing process corresponding to the prescription information is used as the first time identifier, and the initial time period of each dispensing step is obtained based on the first time identifier and the dispensing speed of each dispensing step. Multiple initial images corresponding to the initial time period in the surveillance video are extracted. At least one target image is obtained based on the multiple initial images and at least one pre-stored image. The pre-stored image is a photo corresponding to the start or end time of each of the drug dispensing steps that has been marked. Based on the target time of the target image, the target time period for each medication dispensing step is obtained, where the target time is the monitoring time corresponding to the target image; and The surveillance video is segmented and cut based on the target time period to obtain the multiple surveillance video segments.
2. The processing method for an automated dispensing process according to claim 1, characterized in that, Obtaining the surveillance video includes: Check if the video service is enabled; In response to the activation of the video service, the number of cameras used to capture the surveillance video is checked; In response to the number of cameras meeting a preset condition and based on the first received prescription identifier, the cameras are controlled to begin video monitoring of the automated dispensing process; and Based on the prescription identifier received again, the camera is controlled to end video monitoring of the automated dispensing process.
3. The processing method for an automated dispensing process according to claim 2, characterized in that, The number of cameras is multiple, and the video identifier also includes the camera position identifier of the camera.
4. The processing method for an automated dispensing process according to claim 1, characterized in that, Obtaining the target time period includes: Each initial image is compared with the pre-stored image to obtain the similarity between each initial image and the pre-stored image; In response to the highest similarity score being no less than a preset threshold, the initial image corresponding to the image with the highest similarity score being no less than the preset threshold is used as the target image, and the target time corresponding to the target image is recorded; and The target time period is obtained based on the target time.
5. The processing method for an automated dispensing process according to claim 1 or 4, characterized in that, At least one of the target images is used as the cover thumbnail of each of the surveillance video segments, and multiple surveillance video segments are thumbnailed onto the same page.
6. The processing method for an automated dispensing process according to claim 1, characterized in that, The prescription information also includes search keywords for each dispensing step. The prescription information is encrypted based on the prescription identifier, the video identifier, a second time identifier used to characterize the monitoring time of the video segment, and a random number to obtain the video segment identifier corresponding to the prescription information.
7. A system for an automated drug dispensing process, comprising a monitoring system for processing monitoring video of the automated drug dispensing process, characterized in that, This includes the recording end, the processing end, and the server end; The recording device is configured to acquire monitoring video corresponding to the prescription information during the automatic dispensing process; The prescription information includes a prescription identifier used to uniquely characterize the prescription information; The processing terminal is configured to obtain a video identifier that matches the monitoring video based on the monitoring video. The video identifier includes a first time identifier that represents the monitoring time of the monitoring video and the prescription identifier. The processing terminal is configured to associate the prescription information and the monitoring video based on the video identifier, and to segment the monitoring video associated with the prescription information to obtain multiple monitoring video segments. Each of these multiple monitoring video segments corresponds one-to-one with a specific dispensing step in the automated dispensing process. Specifically, the start time of the automated dispensing process corresponding to the prescription information is used as the first time identifier; the initial time period of each dispensing step is obtained based on the first time identifier and the dispensing speed of each dispensing step; multiple initial images corresponding to the initial time periods in the monitoring video are extracted; at least one target image is obtained based on the multiple initial images and at least one pre-stored image, where the pre-stored image is a photo corresponding to the marked start or end time of each dispensing step; the target time period of each dispensing step is obtained based on the target time of the target image, where the target time is the monitoring time corresponding to the target image; and the monitoring video is segmented based on the target time period to obtain the multiple monitoring video segments. The processing terminal is further configured to obtain a video segment identifier that matches the monitoring video segment based on the monitoring video segment, and generate an identifier array based on the prescription identifier, the video identifier, and the video segment identifier; The server is configured to associate the identifier array with the prescription information.
8. An electronic device, characterized in that, The electronic device includes a processor and a memory, the processor executing a program stored in the memory to implement the processing method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction, which, when executed by a processor, implements the processing method as described in any one of claims 1-6.
Citation Information
Patent Citations
Video preview method, device and electronic equipment
CN113596582A
Pharmacy support system
JP2015208528A