Drug sorting method and apparatus, device, and storage medium
By setting up identification areas and sorting baskets on the drug sorting chain, and using automatic identification and matching modules, the problem of misplaced and misplaced in the existing drug sorting methods is solved, and the efficiency of drug outbound and sorting accuracy is improved.
Patent Information
- Application Number
- PCT/CN2023/141090
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-14
- Filing Date
- 2023-12-22
- Publication Date
- 2025-05-22
AI Technical Summary
In the existing drug sorting methods, the first picking and then sprinkling mode adds the outbound process, and it is easy to have misplaced and misplaced problems, affecting the efficiency of drug outbound.
It improves the efficiency of drug out-of-stock, reduces the risk of misplaced and leaks, and enhances sorting accuracy.
Smart Images

Figure CN2023141090_22052025_PF_FP_ABST
Abstract
Description
Drug sorting method, device, equipment and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on November 14, 2023, with application number 202311513633.8, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the technical field of logistics, for example, to a medicine sorting method, device, equipment and storage medium. Background Art
[0003] The drug sales platform sells various drugs to users. Considering that the SKUs (Stock Keeping Units) of drugs are numerous and scattered, the current method of sorting drugs in the warehouse mainly uses the pick-first-then-delivery model.
[0004] Picking first and then placing means that the medicines are selected from the picking area and placed in a specific area for secondary sorting in the specific area. Picking first and then placing adds links to the outbound process, and the problem of misplacement or omission is prone to occur during sorting, which affects the efficiency of medicine outbound delivery.
[0005] Summary of the Invention
[0006] The present application provides a medicine sorting method, device, equipment and storage medium to improve the efficiency of medicine delivery.
[0007] According to one aspect of the present application, a medicine sorting method is provided, wherein a to-be-sorted area, an identification area, a plurality of sorting baskets, and a packaging station are sequentially arranged on a sorting chain, the method comprising:
[0008] Accumulate multiple order data into one wave;
[0009] When the medicines picked out according to the wave are placed in the to-be-sorted area, the medicines are sequentially controlled to move from the to-be-sorted area to the identification area;
[0010] respectively detecting information and status of the medicine in the identification area;
[0011] If the status is normal, matching the drug with the order data according to the drug information;
[0012] If the match is successful, the medicine is controlled to move from the identification area to the sorting basket configured for the order data;
[0013] If the order data completes the sorting of the medicines, the sorting basket is controlled to move to the packing station to wait for packing.
[0014] According to another aspect of the present application, a medicine sorting device is provided, wherein a to-be-sorted area, an identification area, a plurality of sorting baskets, and a packing table are sequentially arranged on a sorting chain, the device comprising:
[0015] The wave accumulation module is set to accumulate multiple order data into one wave;
[0016] an identification and movement module configured to sequentially control the movement of the medicines from the to-be-sorted area to the identification area when the medicines sorted according to the wave are placed in the to-be-sorted area;
[0017] A drug detection module, configured to detect information and status of the drug in the identification area;
[0018] a drug matching module, configured to match the drug with the order data based on the drug information if the status is normal;
[0019] A sorting and moving module is configured to control the movement of the medicine from the identification area to a sorting basket configured for the order data if the match is successful;
[0020] The packing and moving module is configured to control the sorting basket to move to the packing table and wait for packing if the order data completes the sorting of the medicines.
[0021] According to another aspect of the present application, an electronic device is provided, comprising:
[0022] at least one processor; and
[0023] a memory communicatively connected to the at least one processor; wherein,
[0024] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the drug sorting method described in any embodiment of the present application.
[0025] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the drug sorting method described in any embodiment of the present application when executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The following is a brief introduction to the drawings required for the description of the embodiments. The drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0027] FIG1 is a flow chart of a drug sorting method provided according to Example 1 of the present application;
[0028] FIG2 is a schematic structural diagram of a sorting chain provided according to Example 1 of the present application;
[0029] FIG3 is a schematic structural diagram of a medicine sorting device provided according to Example 2 of the present application;
[0030] FIG4 is a schematic structural diagram of an electronic device provided according to a third embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. The described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] Example 1
[0034] Figure 1 is a flow chart of a drug sorting method provided in Example 1 of the present application. The method can be performed by a drug sorting device. The drug sorting device can be implemented in the form of hardware and / or software. The drug sorting device can be configured in an electronic device, especially as a controller of a sorting chain.
[0035] In the warehouse of the e-commerce platform, a sorting chain can be configured, which is used for secondary sorting of picking first and then broadcasting.
[0036] As shown in Figure 2, the sorting chain is sequentially provided with a waiting-to-sort area, an identification area, a rejection area, a plurality of sorting baskets 203 and a packaging table. The waiting-to-sort area is an area where medicines are picked out from the picking area and placed waiting for sorting. The identification area is an area for identifying the information and status of medicines. The rejection area is an area for placing medicines that are rejected due to abnormalities such as damaged outer packaging and unclear approval numbers. Each sorting basket 203 is used to place medicines with order data. The packaging table is an area for packaging medicines with order data.
[0037] Optionally, a first conveyor belt 201 is arranged between the area to be sorted, the identification area and the multiple sorting baskets 203. The first conveyor belt 201 can be used to transport medicines 202 between the area to be sorted, the identification area and the multiple sorting baskets 203, and to transport the medicines 202 from the area to be sorted to the identification area, and to transport the medicines 202 from the identification area to the sorting baskets 203. In addition, a second conveyor belt 204 is arranged between the multiple sorting baskets 203 and the packaging table. The second conveyor belt 204 can be used to transport the sorting baskets 203 to the packaging table.
[0038] As shown in FIG1 , the method includes:
[0039] Step 101: Accumulate multiple order data into a wave.
[0040] In actual applications, users log in to the e-commerce platform that sells medicines on the client, select one or more medicines on the e-commerce platform to place an order, and complete the payment. At this time, the e-commerce platform system will generate corresponding order data, among which the order data includes order number, order time, medicine category, quantity of single-category medicines, amount information (amount of single-category medicines, discount, total amount), recipient, telephone number, delivery address and other information.
[0041] The e-commerce platform's system pushes multiple order data to the warehouse, and instructs staff to perform wave picking in the warehouse based on the multiple order data. Wave picking combines different orders into one wave according to certain standards and guides picking once. In other words, wave picking is the classification and picking of multiple order data.
[0042] In this embodiment, when order data is received, the drug categories included in the order data are queried.
[0043] If the order data contains medicines of multiple categories, that is, the order data is a multi-category order, the order data can be accumulated and the number of currently accumulated order data can be counted.
[0044] If the quantity of current order data accumulates to a specified first quantity, the accumulated order data will be divided into one wave, where the first quantity is the number of sorting baskets available on the sorting chain. As shown in FIG2 , if the number of sorting baskets 203 available on the sorting chain is 20, then when the quantity of current multi-category order data accumulates to 20, the current 20 multi-category order data will be divided into one wave.
[0045] Step 102: When the medicines picked out according to the wave are placed in the area to be sorted, the medicines are controlled to move from the area to be sorted to the identification area in sequence.
[0046] If a wave is divided, the staff or robot can be notified to pick out the medicines in the wave from the picking area and place the selected medicines in the picking basket. After picking, the picking basket will be placed in a special sorting area to wait for sorting.
[0047] As shown in Figure 2, when the barcode of the picking basket is recognized in the area to be sorted, the sorting operation of the order data of this wave is started, and the medicines 202 in the picking basket are placed into the sorting first conveyor belt 201 in turn. The first conveyor belt 201 is controlled to move the medicines from the area to be sorted to the identification area, waiting for identification and sorting.
[0048] Step 103: Detect the information and status of the medicine in the identification area.
[0049] In the recognition area, sensors such as cameras, scanners, and electronic scales can be deployed. When the medicines arrive at the recognition area, the corresponding sensors can be called to sense the medicines, and the sensed data can be used to detect the information and status of the medicines.
[0050] Among them, the information of the medicine mainly records various attributes of the medicine, for example, the information of the medicine includes identification, batch number, name, specifications, etc., and the status of the medicine is normal or abnormal. Normal medicines can continue to be sorted and allowed to be sent to users, while abnormal medicines will stop being sorted and prohibited from being sent to users.
[0051] In one embodiment of the present application, step 103 may include the following steps:
[0052] Step 1031: Collect image data of the medicine.
[0053] In the recognition area, the camera can be called to collect image data of each side of the medicine.
[0054] Step 1032: If a barcode scanned by a scanner on a drug is received, the barcode is decoded into the identification of the drug.
[0055] Generally speaking, the outer packaging of most medicines will be equipped with a unique barcode. Therefore, in the identification area, you can wait for the scanner to scan the barcode of the medicine.
[0056] If a barcode scanned by a scanner is received, the barcode can be decoded using algorithms such as EAN-13 and UPC-A to obtain the identification of the drug (such as a code).
[0057] Step 1033: If the barcode of the medicine scanned by the scanner is not received, the identification of the medicine is determined based on the image data.
[0058] If the drug is not configured with a barcode or the scanner makes an error in scanning the barcode of the drug, so that the barcode scanned by the scanner is not received, the characteristics of the drug can be detected based on the image data, and the identification of the drug (such as the code) can be determined using the characteristics of the drug.
[0059] In this embodiment, optical character recognition (OCR) may be performed on the image data to obtain a plurality of text information, and the text information may be matched using keywords, regular expressions, etc. to read the name and specification of the current drug from the image data.
[0060] Semantic segmentation networks such as Fully Convolutional Networks (FCN) and U-Net are called to perform semantic segmentation on the image data to segment the outer packaging of the current drug in the image data.
[0061] The sample name, sample specification and sample outer packaging of the medicines with entered identification (such as code) are searched in the database of the e-commerce platform. The sample name and sample specification can be captured by the camera through image data and automatically identified, and then checked by the staff. Alternatively, they can be entered by the staff, and the sample outer packaging can be captured by the camera through image data and automatically identified.
[0062] The name of the current drug is matched with the name of the sample, the specifications of the current drug are matched with the specifications of the sample, and the outer packaging of the current drug is matched with the outer packaging of the sample using methods such as Mean Squared Error (MSE), Structural Similarity Index (SSIM), and Histogram Comparison.
[0063] If the name of the current drug matches the name of the sample, the specifications of the current drug match the specifications of the sample, and the outer packaging of the current drug matches the outer packaging of the sample, the current drug will be configured with the entered identifier.
[0064] Step 1034: Read the batch number of the medicine from the image data.
[0065] The batch number of a drug (also known as the approval number) can be a steel stamp or a spray code. For drugs, the control of delivery is relatively strict, and the drugs should be delivered strictly according to the batch number. Therefore, the batch number of the drug can be detected in the image data.
[0066] In this embodiment, OCR can be performed on the image data to obtain multiple text information, and the text information can be matched using keywords, regular expressions, etc. to read the batch number of the drug from the image data.
[0067] Step 1035: Classify the outer packaging and / or batch number of the medicine in the image data.
[0068] Step 1036: If the category is damaged outer packaging and / or unclear batch number, the status of the drug is determined to be abnormal.
[0069] Step 1037: If the category is that the outer packaging is intact and the batch number is clear, then the status of the drug is determined to be normal.
[0070] In this embodiment, the outer packaging (pixel points) and batch number (pixel points) of the medicine in the image data can be input into a pre-trained classifier for classification.
[0071] If the classifier outputs the category of damaged outer packaging and / or unclear batch number, it can be determined that the status of the drug is abnormal.
[0072] Optionally, as shown in FIG2 , if the status of the drug is abnormal, the drug can be moved from the identification area to the rejection area and wait for staff review.
[0073] If the classifier outputs the category that the outer packaging is intact and the batch number is clear, it can be determined that the status of the drug is normal.
[0074] Step 104: If the status is normal, match the drug with the order data based on the drug information.
[0075] If the status of the drug is normal, the drug can be matched with the order data based on the drug information, and the drug can be assigned to the corresponding order, that is, the order data to which the drug belongs can be determined.
[0076] For example, it is known that there is a queue Q for drugs to be sorted, queues P1, P2, P3, ..., Pn (n is a positive integer, such as 20) for drugs that have been picked according to order data, and the drug to be identified is p. The drug p is moved from queue Q to queue Pm (m∈n).
[0077] The drugs are screened based on the order data to determine the set A of order data to which the drugs belong. If set A is empty, it means that the drug is mispicked. At this time, the drug is moved from the identification area to the rejection area and waits for staff review.
[0078] In one embodiment of the present application, step 104 may include the following steps:
[0079] Step 1041: Query the order data for the identification and batch number of the medicine to be sorted.
[0080] In this embodiment, the identification (such as code) and batch number of the medicines waiting to be sorted can be read from each order data.
[0081] Step 1042: Compare the identification and batch number of the current drug with the identification and batch number in the order data.
[0082] In this embodiment, the identification (such as code) of the current drug is compared with the identification (such as code) of the drug to be sorted in the order data, and the batch number of the current drug is compared with the batch number of the drug to be sorted in the order data.
[0083] Step 1043: If the identification and batch number of the current drug are the same as those in the order data, it is determined that the current drug matches the order data successfully.
[0084] If the identification (such as code) of the current drug is the same as the identification (such as code) of the drug to be sorted in the order data, and the batch number of the current drug is the same as the batch number of the drug to be sorted in the order data, it can be determined that the current drug and the drug to be sorted in the order data are successfully matched, and the current drug is allowed to be assigned to the order data.
[0085] If the identification (such as code) of the current drug is different from the identification (such as code) of the drug to be sorted in the order data, and / or the batch number of the current drug is different from the batch number of the drug to be sorted in the order data, it can be determined that the current drug fails to match the drug to be sorted in the order data, and the current drug is prohibited from being assigned to the order data.
[0086] In another embodiment of the present application, step 104 may further include the following steps:
[0087] Step 1044: If the current drug successfully matches multiple order data, configure priorities for the multiple order data.
[0088] If the current drug successfully matches the drugs to be sorted in multiple order data, it means that multiple order data are waiting for sorting of the same drug. At this time, the priorities of the multiple order data relative to the current drug can be configured from multiple dimensions as a reference for the order of sorting drugs.
[0089] In this embodiment, a unified priority can be configured for multiple order data that successfully match the current drug.
[0090] The third quantity of the medicines to be sorted whose batch numbers are unclear or whose outer packaging is damaged is counted in the order data.
[0091] Since medicines with unclear batch numbers or damaged outer packaging are considered to be in abnormal conditions, they are removed from the removal area and cannot reach the sorting basket. There is a lag in the order data for these medicines. Therefore, the priority of the order data can be lowered according to the third quantity, wherein the magnitude of the priority reduction is positively correlated with the third quantity, that is, the more the third quantity of medicines in abnormal conditions is contained in the order data, the greater the magnitude of the priority reduction of the order data. Conversely, the fewer the third quantity of medicines in abnormal conditions is contained in the order data, the smaller the magnitude of the priority reduction of the order data.
[0092] The fourth quantity of the categories of all medicines (regardless of whether they have been sorted or to be sorted) and the fifth quantity of all medicines (regardless of whether they have been sorted or to be sorted) are counted in the order data.
[0093] Since order data with fewer categories and fewer medicines is relatively easy to sort, and order data with more categories and more medicines is relatively difficult to sort, the priority of the order data can be increased according to the fourth quantity and the fifth quantity, wherein the magnitude of the priority increase is negatively correlated with the fourth quantity and the fifth quantity, that is, the smaller the fourth quantity of the category of the medicine in the order data and the smaller the fifth quantity of the medicine, the greater the magnitude of the priority increase of the order data; conversely, the more the fourth quantity of the category of the medicine in the order data and the more the fifth quantity of the medicine, the smaller the magnitude of the priority increase of the order data.
[0094] The priority of each order data for a certain drug is now dynamically adjusted according to the drug sorting situation, which can achieve the optimal effect of real-time drug sorting.
[0095] Step 1045: Filter out the order data with the highest priority as the target order data.
[0096] For a given drug, the priorities of all order data relative to the drug can be compared, and the order data with the highest priority can be screened out from all order data and recorded as target order data.
[0097] Step 1046: If the second quantity of the target order data is single, it is determined that the current drug successfully matches the target order data.
[0098] Step 1047: If the second quantity of the target order data is multiple, determine that the current drug successfully matches the target order data with the highest ranking.
[0099] In this embodiment, the second quantity of the target order data with the highest priority may be counted.
[0100] If the second quantity of the target order data is single, it can be determined that the current drug successfully matches the target order data.
[0101] If there are multiple second quantities of target order data, the target order data may be sorted according to the time when the target order data was generated, based on the proximity principle, to determine whether the current drug successfully matches the target order data with the highest sorting.
[0102] In an example, the order data for the same wave are sorted in order as P1, P2, and P3. The drug details in each order data are as follows:
[0103] P1: A, B, C, E.
[0104] P2: A, C, D.
[0105] P3: A, B.
[0106] The order of drugs selected by this wave entering the first conveyor belt is A→D→C→E→A→B→B→C→A. The outer packaging of drug D is broken, and the order of order data matched to each drug is P3→P1→P1→P1→P3→P1→P2→P2. In this example, the matching process between drugs and order data can be expressed as follows:
[0107] In this example, order data P1 allocates drugs C, E, A and B in sequence and completes sorting. Order data P3 allocates drugs A and B in sequence and completes sorting. Order data P2 is missing drug D, an exception occurs, and it is waiting for staff review.
[0108] Step 105: If the match is successful, the medicine is controlled to move from the identification area to the sorting basket configured for the order data.
[0109] As shown in FIG2 , if the current drug successfully matches a certain order data and is assigned to the order data, the first conveyor belt 201 can be controlled to move the current drug from the identification area to the sorting basket configured for the order data.
[0110] Step 106: If the order data completes the sorting of medicines, the sorting basket is controlled to move to the packing table and wait for packaging.
[0111] As shown in Figure 2, for each order data, it is possible to check in real time whether all medicines in each order data have been sorted, that is, whether all medicines in the order data have been sorted into the sorting basket. If a certain order data has completed the sorting of medicines, the second conveyor belt 204 can be controlled to move the corresponding sorting basket to the packing table and wait for packaging.
[0112] Optionally, when all the medicines in a wave are matched, if a certain order data has not completed the sorting of medicines, that is, the order data is missing medicines, an alarm message can be generated for the order data, waiting for staff review, and the missing medicines will be supplemented before subsequent packaging.
[0113] In this embodiment, a sorting area, an identification area, multiple sorting baskets, and a packaging table are sequentially arranged on the sorting chain, and multiple order data are accumulated as a wave; when the medicines picked out according to the wave are placed in the sorting area, the medicines are sequentially controlled to move from the sorting area to the identification area; the information and status of the medicines are respectively detected in the identification area; if the status is normal, the medicines are matched with the order data based on the information of the medicines; if the match is successful, the medicines are controlled to move from the identification area to the sorting basket configured for the order data; if the order data completes the sorting of the medicines, the sorting baskets are controlled to move to the packaging table to wait for packaging. In the process of secondary sorting, this embodiment assists in sorting based on the two dimensions of medicine information and status, which can reduce the problems of misplacement and omission during sorting, improve the sorting accuracy of medicines, and thus improve the efficiency of medicine outbound delivery.
[0114] Example 2
[0115] Figure 3 is a schematic diagram of the structure of a medicine sorting device provided in Example 2 of the present application. As shown in Figure 3, a sorting area, an identification area, a plurality of sorting baskets and a packing table are sequentially arranged on the sorting chain. The device includes:
[0116] The wave accumulation module 301 is configured to accumulate multiple order data into a wave;
[0117] The identification and movement module 302 is configured to control the movement of the medicines from the to-be-sorted area to the identification area in sequence when the medicines sorted according to the wave are placed in the to-be-sorted area;
[0118] The drug detection module 303 is configured to detect the information and status of the drug in the identification area respectively;
[0119] The drug matching module 304 is configured to match the drug with the order data based on the drug information if the status is normal;
[0120] The sorting and moving module 305 is configured to control the movement of the medicine from the identification area to the sorting basket configured for the order data if the match is successful;
[0121] The packing and moving module 306 is configured to control the sorting basket to move to the packing station and wait for packing if the order data completes sorting of the medicines.
[0122] In one embodiment of the present application, the wave accumulation module 301 includes:
[0123] A category query module, configured to query the drug category included in the order data when the order data is received;
[0124] an order accumulation module, configured to accumulate the order data if the order data contains medicines of multiple categories;
[0125] The quantity division module is configured to divide the accumulated order data into a wave if the order data accumulates to a specified first quantity.
[0126] In one embodiment of the present application, the information of the drug includes an identification and a batch number;
[0127] The drug detection module 303 includes:
[0128] An image data acquisition module, configured to acquire image data of the medicine;
[0129] a barcode decoding module configured to decode a barcode scanned by a scanner on the drug into an identifier of the drug;
[0130] an identification determination module configured to determine the identification of the drug based on the image data if the barcode scanned by the scanner on the drug is not received;
[0131] a batch number reading module, configured to read the batch number of the drug from the image data;
[0132] an information classification module configured to classify the outer packaging of the drug and / or the batch number in the image data;
[0133] an abnormality determination module, configured to determine that the status of the drug is abnormal if the category is that the outer packaging is damaged and / or the batch number is unclear;
[0134] The normal determination module is configured to determine that the status of the drug is normal if the category is that the outer packaging is intact and the batch number is clear.
[0135] In one embodiment of the present application, the identification determination module includes:
[0136] a parameter reading module, configured to read the name and specification of the current medicine from the image data;
[0137] an outer packaging segmentation module, configured to segment the outer packaging of the current medicine from the image data;
[0138] An information query module is configured to query the sample name, sample specification and sample outer packaging of the drug that has been entered and identified;
[0139] an information matching module configured to respectively match the name of the current drug with the name of the sample, match the specifications of the current drug with the specifications of the sample, and match the outer packaging of the current drug with the outer packaging of the sample;
[0140] The identification configuration module is configured to configure the current drug with the entered identification if the name of the current drug matches the name of the sample, the specifications of the current drug match the specifications of the sample, and the outer packaging of the current drug matches the outer packaging of the sample.
[0141] In one embodiment of the present application, the information of the drug includes an identification and a batch number;
[0142] The drug matching module 304 includes:
[0143] An order query module, configured to query the identification and batch number of the medicine to be sorted in the order data;
[0144] an information comparison module configured to compare the identification and batch number of the current drug with the identification and batch number in the order data;
[0145] The matching success determination module is configured to determine that the current drug successfully matches the order data if the identification and batch number of the current drug are the same as the identification and batch number in the order data.
[0146] In one embodiment of the present application, the drug matching module 304 further includes:
[0147] a priority configuration module, configured to configure priorities for the multiple order data if the current drug successfully matches the multiple order data;
[0148] a target order screening module, configured to screen out the order data with the highest priority as target order data;
[0149] a single order correction module, configured to determine that the current drug successfully matches the target order data if the second quantity of the target order data is single;
[0150] The multiple order correction module is configured to determine that the current drug successfully matches the target order data with the highest ranking if the second quantity of the target order data is multiple.
[0151] In one embodiment of the present application, the priority configuration module includes:
[0152] A priority generation module, configured to configure a unified priority for the plurality of order data;
[0153] an abnormal quantity statistics module, configured to count a third quantity of medicines to be sorted whose batch numbers are unclear or whose outer packaging is damaged in the order data;
[0154] a priority lowering module, configured to lower the priority of the order data according to the third quantity, wherein the magnitude of the priority lowering is positively correlated with the third quantity;
[0155] a drug quantity statistics module, configured to count the fourth quantity of the drug category and the fifth quantity of the drug in the order data;
[0156] The priority increasing module is configured to increase the priority of the order data according to the fourth quantity and the fifth quantity, and the magnitude of the priority increase is negatively correlated with the fourth quantity and the fifth quantity.
[0157] The drug sorting device provided in the embodiments of the present application can execute the drug sorting method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects for executing the drug sorting method.
[0158] Example 3
[0159] FIG4 shows a block diagram of an electronic device 10 that can be used to implement embodiments of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are provided as examples only and are not intended to limit the implementation of the present application as described and / or claimed herein.
[0160] As shown in FIG4 , the electronic device 10 includes at least one processor 11 and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12 and a random access memory (RAM) 13. The memory stores a computer program that can be executed by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the ROM 12 or the computer program loaded from the storage unit 18 into the RAM 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0161] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0162] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the drug sorting method.
[0163] In some embodiments, the drug sorting method can be implemented as a computer program that is tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the drug sorting method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the drug sorting method in any other suitable manner (e.g., by means of firmware).
[0164] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts (ASSPs), system on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0165] Computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0166] In the context of the present application, computer-readable storage medium can be a tangible medium that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage medium can include electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage medium can be a machine-readable signal medium. Machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, RAM, ROM, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device or any suitable combination of the foregoing.
[0167] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0168] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0169] A computing system may include a client and a server. The client and server are generally remote from each other and typically interact via a communication network. The client-server relationship arises through computer programs running on the respective computers and establishing a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, a host product within a cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosts and virtual private server (VPS) services.
[0170] Example 4
[0171] An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the drug sorting method provided in any embodiment of the present application.
[0172] The computer program product, during implementation, may be written in one or more programming languages or a combination thereof, for performing the operations of the present application, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0173] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions of this application can be achieved.
Claims
1. A medicine sorting method, wherein a to-be-sorted area, an identification area, a plurality of sorting baskets and a packing station are sequentially arranged on a sorting chain. include: Accumulate multiple order data into one wave; When the medicines picked out according to the wave are placed in the to-be-sorted area, the medicines are sequentially controlled to move from the to-be-sorted area to the identification area; respectively detecting the information and status of the medicine in the identification area; If the status is normal, matching the drug with the order data according to the information of the drug; If the match is successful, controlling the medicine to move from the identification area to the sorting basket configured for the order data; If the order data completes the sorting of the medicines, the sorting basket is controlled to move to the packing station to wait for packing.
2. The method according to claim 1, in, The accumulated multiple order data is a wave, including: When order data is received, query the drug category included in the order data; If the order data includes drugs of multiple categories, accumulating the order data; If the order data accumulates to a specified first quantity, the accumulated order data is divided into a wave.
3. The method according to claim 1, in, The information of the drug includes identification and batch number; The detecting the information and status of the drug in the identification area respectively includes: collecting image data of the medicine; If a barcode scanned by a scanner on the drug is received, the barcode is decoded into an identification of the drug; If the barcode scanned by the scanner on the drug is not received, determining the identification of the drug based on the image data; Reading the batch number of the medicine from the image data; Classifying the outer packaging and / or the batch number of the drug in the image data; If the category is that the outer package is damaged and / or the batch number is unclear, then the status of the drug is determined to be abnormal; If the category is that the outer packaging is intact and the batch number is clear, it is determined that the status of the drug is normal.
4. The method according to claim 3, in, Determining the identification of the drug based on the image data includes: Reading the name and specification of the current medicine from the image data; Segmenting the outer packaging of the current medicine in the image data; Query the sample name, sample specification and sample outer packaging of the drug that has been entered and labeled; Respectively matching the name of the current drug with the name of the sample, matching the specifications of the current drug with the specifications of the sample, and matching the outer packaging of the current drug with the outer packaging of the sample; If the name of the current drug matches the name of the sample, the specifications of the current drug match the specifications of the sample, and the outer packaging of the current drug matches the outer packaging of the sample, the current drug will be configured with the entered identifier.
5. The method according to any one of claims 1 to 4, in, The information of the drug includes identification and batch number; The matching of the drug with the order data according to the information of the drug includes: Query the identification and batch number of the medicine to be sorted in the order data; Compare the identification and batch number of the current drug with the identification and batch number in the order data respectively; If the identification and batch number of the current drug are the same as the identification and batch number in the order data, it is determined that the current drug matches the order data successfully.
6. The method according to claim 5, in, The matching of the drug with the order data according to the information of the drug includes: If the current drug successfully matches multiple order data, then configure priorities for the multiple order data; Filter out the order data with the highest priority as target order data; If the second quantity of the target order data is single, determining that the current drug successfully matches the target order data; If the second quantity of the target order data is multiple, it is determined that the current drug successfully matches the target order data with the highest ranking.
7. The method according to claim 6, in, The configuring priorities for the plurality of order data includes: Configuring a unified priority for the plurality of order data; Counting a third quantity of drugs to be sorted whose batch numbers are unclear or whose outer packaging is damaged in the order data; lowering the priority of the order data according to the third quantity, wherein the magnitude of the priority reduction is positively correlated with the third quantity; counting a fourth quantity of the category of medicine and a fifth quantity of medicine in the order data; The priority of the order data is increased according to the fourth quantity and the fifth quantity, and the magnitude of the priority increase is negatively correlated with the fourth quantity and the fifth quantity.
8. A medicine sorting device, wherein a sorting area, an identification area, a plurality of sorting baskets and a packing table are sequentially arranged on a sorting chain. include: The wave accumulation module is set to accumulate multiple order data into one wave; An identification and movement module, configured to control the medicines to be moved from the to-be-sorted area to the identification area in sequence when the medicines picked out according to the wave are placed in the to-be-sorted area; A drug detection module, configured to detect information and status of the drug in the identification area respectively; a drug matching module, configured to match the drug with the order data according to the drug information if the state is normal; A sorting and moving module, configured to control the movement of the medicine from the identification area to a sorting basket configured for the order data if the match is successful; The packing and moving module is configured to control the sorting basket to move to the packing table and wait for packing if the order data completes the sorting of the medicines.
9. An electronic device, the electronic device include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the drug sorting method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program is used to enable a processor to implement the drug sorting method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Article sorting method and article sorting control device and system
CN110270511A
Packaging material detection method and device, electronic equipment and storage medium
CN114219955A
Sorting system
CN115365150A
Goods identification method, device and equipment and storage medium
CN116935062A
Drug identification device and drug sorting device, drug dispensing system, and drug identification method that include the drug identification device
JP2019213693A
Cited By
OCR traceability-based strip-type package sealing abnormity early warning method
CN120672749A