Drug traceability code scanning identification method and device

By obtaining the first and second posture images of the drug, and using the movement process on the drug delivery conveyor belt, combined with the target detection algorithm to fully identify the drug trace code, the incomplete identification problem caused by the drug trace code at different surfaces is solved, and the efficiency and safety of drug scanning and identification are improved.

CN119904850APending Publication Date: 2025-04-29SHENZHEN LACHESIS MOBILE MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411860555.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

During the drug delivery process, the drug traceability code may be printed on any side of the drug packaging box, resulting in low manual scanning efficiency, easy missed inspection, and increased labor costs.

Method used

By obtaining the first and second posture images of the drug, using the movement process on the drug delivery conveyor belt, combined with the target detection algorithm to fully identify the drug traceability code to avoid incomplete recognition caused by different surface positions.

Benefits of technology

It improves the efficiency of drug scanning and identification, reduces labor costs, ensures the complete identification of drug traceability codes, and avoids missed inspections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119904850A_ABST
    Figure CN119904850A_ABST
Patent Text Reader

Abstract

The invention discloses a medicine traceability code scanning recognition method and device, and the method comprises the steps: obtaining a first posture image of a to-be-recognized medicine, and moving the to-be-recognized medicine to a medicine dispensing conveyor belt, so as to enable the to-be-recognized medicine to move on the medicine dispensing conveyor belt; and acquiring a second posture image of movement of the to-be-identified medicine, and scanning and identifying a medicine traceability code of the to-be-identified medicine based on the first posture image and the second posture image. The medicine to be recognized is determined according to the medicine dispensing requirement, the medicine to be recognized is moved to the medicine dispensing conveying belt to be conveyed so that the medicine to be recognized can move on the medicine dispensing conveying belt, the second posture image in the moving process is obtained, and therefore the image of the medicine to be recognized is obtained in an omnibearing mode according to the first posture and the second posture; missing detection caused by the fact that the medicine traceability codes are located on different faces in the medicine dispensing process is avoided, and the medicine scanning recognition efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method and device for scanning and identifying a drug traceability code. Background Art

[0002] The drug traceability code is a coding system for drug traceability management in the production, circulation, and sales of drugs to ensure drug quality and safety. Through the drug traceability code, the production, circulation, and sales of drugs can be traced, drug quality problems can be discovered and handled in a timely manner, and patient medication safety can be ensured.

[0003] During the dispensing process of the medicine dispensing machine, in order to confirm whether the medicine is correct, the medicine information needs to be scanned according to the medicine traceability code. However, since the medicine traceability code may be printed on any side of the medicine packaging box, the medicine needs to be scanned manually so that the traceability code can be scanned and identified and entered into the system, and the medicine scanning efficiency is low. Summary of the invention

[0004] The present invention provides a drug traceability code scanning and identification method and device, so as to improve the drug scanning and identification efficiency in the drug dispensing process and reduce the labor cost.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a drug traceability code scanning and recognition method, comprising:

[0006] Acquire a first posture image of the drug to be identified, and move the drug to be identified to a drug dispensing conveyor belt, so that the drug to be identified moves on the drug dispensing conveyor belt;

[0007] A second posture image of the to-be-identified drug moving is acquired, and a drug traceability code of the to-be-identified drug is scanned and identified based on the first posture image and the second posture image.

[0008] The present invention determines the drugs to be identified according to the drug dispensing requirements, and moves the drugs to be identified to a drug dispensing conveyor belt for conveying, so that the drugs to be identified move on the drug dispensing conveyor belt, and obtains a second posture image during movement, thereby obtaining the image of the drugs to be identified in all directions according to the first posture and the second posture, avoiding missed detection in the drug dispensing process caused by drug traceability codes on different sides, and improving the efficiency of drug scanning and identification.

[0009] Furthermore, before acquiring the first posture image of the drug to be identified, the method further includes:

[0010] Obtain medication dispensing instructions and medication dispensing requirements, and determine the medication to be identified based on the medication dispensing instructions and medication dispensing requirements.

[0011] The present invention automatically obtains drug dispensing instructions and drug dispensing requirements, and determines the drugs to be identified based on the information, determines the specific drugs that need to be scanned for traceability codes, and provides information basis for subsequent drug traceability scanning.

[0012] Furthermore, the step of obtaining the first posture image of the drug to be identified includes:

[0013] Acquire video data of the drug to be identified when it is in a first posture based on a preset first acquisition position;

[0014] The video data is subjected to frame extraction processing to obtain first image information, wherein the first image information includes a front image of a medicine box of the medicine to be identified.

[0015] The present invention can capture dynamic images of the drug in a specific position and posture by acquiring video data of the drug to be identified in a first posture at a preset first acquisition position, and can extract key frames from a continuous video stream to form a first image information containing a front image of the medicine box to provide basic data for subsequent identification processing.

[0016] Furthermore, the step of moving the to-be-identified medicine to a medicine dispensing conveyor belt comprises:

[0017] Calculate the moving distance of the drug based on the drug box specification information and location information of the drug to be identified;

[0018] The drug to be identified is controlled based on the drug dispensing instruction and the drug moving distance until the drug to be identified moves and falls onto the drug dispensing conveyor belt.

[0019] The present invention calculates the moving distance of the medicine by using the medicine box specification information, can optimize the medicine dispensing process, and ensure that each medicine can enter the conveyor belt at the appropriate time and location. It helps to improve the efficiency and fluency of the entire medicine dispensing process, reduce waiting time and operating errors, and avoid collision or damage of medicines during movement.

[0020] Furthermore, the step of acquiring the second posture image of the drug to be identified includes:

[0021] The second posture data of the drug to be identified is acquired based on a preset second acquisition position, and a second posture image is acquired based on the second posture data; the second posture image includes side images of the medicine box on four sides of the drug to be identified.

[0022] The present invention can fully capture different side information of the drug packaging box by acquiring the second posture data of the drug to be identified at the preset second collection position, and then acquiring the second posture image including four side images of the drug box. This helps to identify the drug traceability code at different angles and improve the comprehensiveness and accuracy of identification.

[0023] Furthermore, the scanning and identifying the drug traceability code of the drug to be identified based on the first posture image and the second posture image includes:

[0024] Determining the traceability code position of the drug to be identified based on the medicine box specification information of the drug to be identified;

[0025] The drug traceability code in the first posture image and the second posture image is detected based on the traceability code position and the target detection algorithm.

[0026] The present invention detects the drug traceability code in the first posture image and the second posture image by combining the target detection algorithm, and comprehensively identifies the drug traceability code on the medicine box of the drug to be identified, thereby avoiding incomplete identification caused by the drug traceability code on different surfaces.

[0027] In a second aspect, the present invention provides a drug traceability code scanning and identification device, comprising: a first acquisition module and a second acquisition module;

[0028] The first acquisition module is used to acquire a first posture image of the drug to be identified, and move the drug to be identified to a drug dispensing conveyor belt, so that the drug to be identified moves on the drug dispensing conveyor belt;

[0029] The second acquisition module is used to obtain a second posture image of the to-be-identified drug moving, and scan and identify the drug traceability code of the to-be-identified drug based on the first posture image and the second posture image.

[0030] Furthermore, the first acquisition module is used to:

[0031] Acquire video data of the drug to be identified when it is in a first posture based on a preset first acquisition position;

[0032] The video data is subjected to frame extraction processing to obtain first image information, wherein the first image information includes a front image of a medicine box of the medicine to be identified.

[0033] Furthermore, the first acquisition module is used to:

[0034] Calculate the moving distance of the drug based on the drug box specification information and location information of the drug to be identified;

[0035] The drug to be identified is controlled based on the drug dispensing instruction and the drug moving distance until the drug to be identified moves and falls onto the drug dispensing conveyor belt.

[0036] Furthermore, the second acquisition module is used to:

[0037] The second posture data of the drug to be identified is acquired based on a preset second acquisition position, and a second posture image is acquired based on the second posture data; the second posture image includes side images of the medicine box on four sides of the drug to be identified. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of a flow chart of a drug traceability code scanning and identification method provided by an embodiment of the present invention;

[0039] Figure 2 A schematic diagram of the structure of a first identification module of a medicine dispensing machine provided in an embodiment of the present invention;

[0040] Figure 3 A schematic structural diagram of a second identification module of a medicine dispensing machine provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0042] The terms "first" and "second" and the like in the specification, claims and drawings of this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof 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 limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0043] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0044] Example 1

[0045] See also Figure 1 , Figure 1The present invention provides a flowchart of a drug traceability code scanning and identification method according to an embodiment of the present invention. The present invention provides a drug traceability code scanning and identification method, including steps 101 to 102, which are as follows:

[0046] Step 101: Acquire a first posture image of a drug to be identified, and move the drug to be identified onto a drug dispensing conveyor belt, so that the drug to be identified moves on the drug dispensing conveyor belt;

[0047] In this embodiment, before acquiring the first posture image of the drug to be identified, the method further includes:

[0048] Obtain medication dispensing instructions and medication dispensing requirements, and determine the medication to be identified based on the medication dispensing instructions and medication dispensing requirements.

[0049] In this embodiment, the drug dispensing requirement is obtained based on the prescription, and the drug dispensing requirement includes the drug name and the drug quantity. The drug dispensing instruction includes the current drug to be identified.

[0050] In this embodiment, when determining the drugs to be identified, the system can also manage and control the drugs based on the drug delivery demand and inventory status. For example, if the inventory quantity of a certain drug is insufficient, the system can promptly issue an alarm or adjust the drug delivery plan to ensure the smooth progress of the drug delivery process.

[0051] In this embodiment, the step of acquiring the first posture image of the drug to be identified includes:

[0052] Acquire video data of the drug to be identified when it is in a first posture based on a preset first acquisition position;

[0053] The video data is subjected to frame extraction processing to obtain first image information, wherein the first image information includes a front image of a medicine box of the medicine to be identified.

[0054] In this embodiment, by acquiring video data of the drug to be identified in the first posture at the preset first acquisition position, the dynamic image of the drug in a specific position and posture can be captured. This step provides raw data for subsequent image processing and traceability code recognition. The acquired video data is subjected to frame extraction processing, and key frames can be extracted from the continuous video stream to form the first image information containing the front information of the medicine box.

[0055] In this embodiment, the step of moving the to-be-identified medicine to a medicine dispensing conveyor belt includes:

[0056] Calculate the moving distance of the drug based on the drug box specification information and location information of the drug to be identified;

[0057] The drug to be identified is controlled based on the drug dispensing instruction and the drug moving distance until the drug to be identified moves and falls onto the drug dispensing conveyor belt.

[0058] In this embodiment, by obtaining the specification information of the drug to be identified, wherein the specification information of the drug includes the width, length and height of the medicine box, the moving distance is calculated based on the specification information and the current position of the drug to be identified, thereby controlling the movement of the drug in the drug dispensing layer and changing the drug from the first posture to the second posture.

[0059] In this embodiment, the first posture of the medicine is that any side surface of the medicine is closely attached to the bottom surface of the medicine dispensing layer, and the second posture of the medicine is that any side surface of the medicine is not parallel to the medicine dispensing conveyor belt.

[0060] In this embodiment, the medicine moving distance is calculated by the medicine box specification information, so as to optimize the medicine dispensing process and ensure that each medicine can enter the conveyor belt at the appropriate time and location. This helps to improve the efficiency and smoothness of the entire medicine dispensing process, reduce waiting time and operational errors, and avoid collision or damage of medicines during movement.

[0061] Step 102: Acquire a second posture image of the to-be-identified drug moving, and scan and identify the drug traceability code of the to-be-identified drug based on the first posture image and the second posture image.

[0062] In this embodiment, the step of acquiring the second posture image of the to-be-identified drug moving includes:

[0063] The second posture data of the drug to be identified is acquired based on a preset second acquisition position, and a second posture image is acquired based on the second posture data; the second posture image includes side images of the medicine box on four sides of the drug to be identified.

[0064] In this embodiment, the second posture data also includes video data, and the video data is extracted to obtain images including the four sides of the medicine box.

[0065] In this embodiment, by acquiring the second posture data of the drug to be identified at the preset second collection position, and then acquiring the second posture image including four side images of the medicine box, the different side information of the medicine packaging box can be fully captured. This helps to identify the drug traceability code at different angles and improve the comprehensiveness and accuracy of identification.

[0066] In this embodiment, the step of scanning and identifying the drug traceability code of the drug to be identified based on the first posture image and the second posture image includes:

[0067] Determining the traceability code position of the drug to be identified based on the medicine box specification information of the drug to be identified;

[0068] The drug traceability code in the first posture image and the second posture image is detected based on the traceability code position and the target detection algorithm.

[0069] In this embodiment, the position of the traceability code is determined by the specification information of the medicine box. When the traceability code is located on the side of the medicine box, the second posture image is recognized and detected based on the target detection algorithm. When the traceability code is located on the front or back of the medicine box, the first posture image is recognized and detected based on the target detection algorithm.

[0070] In this embodiment, the drug traceability code is detected in the first posture image and the second posture image by combining the target detection algorithm, and the drug traceability code on the medicine box of the drug to be identified is fully identified to avoid incomplete identification caused by the drug traceability code on different sides.

[0071] In this embodiment, the drugs to be identified are determined according to the drug dispensing requirements, and are moved to a drug dispensing conveyor belt for transportation, so that the drugs to be identified move on the drug dispensing conveyor belt, and a second posture image of the drug in motion is obtained, thereby obtaining an all-round image of the drug to be identified based on the first posture and the second posture, thereby avoiding missed detections during the drug dispensing process due to drug traceability codes being on different sides, and improving the efficiency of drug scanning and identification.

[0072] In the process of dispensing medicines by an automatic medicine dispensing machine, in order to confirm whether the medicines dispensed are consistent with the medicine information in the prescription, the medicine information can be scanned according to the medicine traceability code on the medicine box. However, since the medicine traceability code may be printed on any side of the medicine packaging box, it is easy to cause the medicine scanning to fail and the medicine information cannot be obtained. Based on the medicine dispensing scenario of the medicine dispensing machine, the present invention provides a medicine traceability code scanning and recognition method to identify the medicine traceability code of the medicine in the process of dispensing medicines by the medicine dispensing machine and obtain the medicine information of the medicine.

[0073] In this embodiment, the medicine dispensing machine includes a first recognition module and a second recognition module. The first recognition module is used to obtain a first posture image of the drug M to be identified, and move the drug M to be identified to a medicine dispensing conveyor belt so that the drug M to be identified moves on the medicine dispensing conveyor belt; the second recognition module is used to obtain a second posture image of the movement of the drug M to be identified, and scan and identify the drug traceability code of the drug M to be identified based on the first posture image and the second posture image.

[0074] In this embodiment, the first recognition module includes a first conveyor belt and a first recognition module, and the second recognition module includes a medicine dispensing conveyor belt and a second recognition module.

[0075] Please refer to Figure 2 and Figure 3 , Figure 2A schematic diagram of the structure of a first identification module of a medicine dispensing machine provided in an embodiment of the present invention; Figure 3 A schematic structural diagram of a second identification module of a medicine dispensing machine provided in an embodiment of the present invention.

[0076] In this embodiment, the first recognition module includes a layer plate 3, a medicine push plate 2 and a second visual module 71. The second recognition module includes a suction cup manipulator 6, a second visual module and a medicine delivery conveyor belt, wherein the medicine delivery conveyor belt includes a second medicine receiving and conveying mechanism 5 and a first medicine receiving and conveying mechanism 4.

[0077] In this embodiment, the first identification module is arranged above the second identification module, and the layer plate 3 of the first identification module is parallel to the medicine dispensing conveyor belt.

[0078] In this embodiment, the first drug receiving and conveying mechanism 4 and the second drug receiving and conveying mechanism 5 are connected to form a drug dispensing conveyor belt, the suction cup manipulator 6 is arranged above the end of the first drug receiving and conveying mechanism 4, and the second visual module is arranged in the middle of the connection between the first drug receiving and conveying mechanism 4 and the second drug receiving and conveying mechanism 5.

[0079] In this embodiment, based on the medicine dispensing device of the medicine dispensing machine, when the medicine dispensing machine is replenishing medicines, the medicines are classified and placed according to the positions of the medicine traceability codes.

[0080] In an optional embodiment, it is applied to a single drug M scenario of a medicine dispensing machine, and the medicine dispensing machine includes a first identification module. When the traceability code of a certain drug M is located on the front or back of the medicine box, the drug M is arranged and placed on the layer plate 3 based on a preset arrangement order, and any side surface of the drug M is close to the upper surface of the layer; and the drug traceability code of the drug M is facing the second visual module 71.

[0081] When the drug M is dispensed, the drug push plate 2 is controlled to move toward the second visual module 71, so that the drug M moves toward the second visual module 71 until the drug M falls to the first drug receiving and conveying mechanism 4 of the second identification module. During the movement of the drug M, the second visual module 71 captures the medicine box information of the drug M and obtains the first posture image. Since the traceability code of the drug M faces the second visual module 71, the drug traceability code is included in the first posture image.

[0082] In an optional embodiment, it is applied to a single drug M scenario of a medicine dispensing machine, and the medicine dispensing machine includes a second identification module. When the traceability code of a certain drug M is located on the side of the medicine box, the drug M is randomly placed on the first drug receiving and conveying mechanism 4, so that any side of the drug M is not parallel to the first drug receiving and conveying mechanism 4.

[0083] When the drug M is dispensed, the first drug receiving and conveying mechanism 4 is controlled to move toward the second drug receiving and conveying mechanism 5. When the drug M moves to the end of the first drug receiving and conveying mechanism 4, the suction cup manipulator 6 absorbs the drug M and controls the drug M to move to the recognition position of the second visual module. When the drug M reaches the preset recognition position, the dishwashing manipulator controls the drug M to rotate so that the second visual module obtains four side images of the drug M, i.e., the second posture image. Since the traceability code of the drug M is located on the side of the medicine box, the drug traceability code can be identified through the second posture image.

[0084] In an optional embodiment, when the medicine dispensing machine is refilling medicine, when the traceability code of a certain medicine M is located on the front or back of the medicine box, the medicine traceability code is placed opposite the second visual module 71; when the traceability code of a certain medicine M is located on the side of the medicine box, any side of the medicine M is attached to the dispenser layer 3.

[0085] When receiving the drug dispensing instruction, the drug push plate 2 is controlled to push the drug M to move until the drug M falls to the second recognition module. During the movement, the first posture image of the drug M, i.e., the front or back image of the drug M, is obtained based on the second visual module 71, and the second posture image of the drug M, i.e., the side image of the drug M, is obtained based on the second visual module; through two image recognitions, it is ensured that the image of the drug M to be identified is obtained in all directions, avoiding missed detection caused by the drug traceability code on different sides during the drug dispensing process, and improving the scanning and recognition efficiency of the drug M.

[0086] The present invention also provides a drug traceability code scanning and identification device, comprising: a first acquisition module and a second acquisition module;

[0087] The first acquisition module is used to acquire a first posture image of the drug to be identified, and move the drug to be identified to a drug dispensing conveyor belt, so that the drug to be identified moves on the drug dispensing conveyor belt;

[0088] The second acquisition module is used to obtain a second posture image of the to-be-identified drug moving, and scan and identify the drug traceability code of the to-be-identified drug based on the first posture image and the second posture image.

[0089] In this embodiment, the first acquisition module is used to:

[0090] Acquire video data of the drug to be identified when it is in a first posture based on a preset first acquisition position;

[0091] The video data is subjected to frame extraction processing to obtain first image information, wherein the first image information includes a front image of a medicine box of the medicine to be identified.

[0092] In this embodiment, the first acquisition module is used to:

[0093] Calculate the moving distance of the drug based on the drug box specification information and location information of the drug to be identified;

[0094] The drug to be identified is controlled based on the drug dispensing instruction and the drug moving distance until the drug to be identified moves and falls onto the drug dispensing conveyor belt.

[0095] In this embodiment, the second acquisition module is used to:

[0096] The second posture data of the drug to be identified is acquired based on a preset second acquisition position, and a second posture image is acquired based on the second posture data; the second posture image includes side images of the medicine box on four sides of the drug to be identified.

[0097] In this embodiment, the second acquisition module is used to:

[0098] Determining the traceability code position of the drug to be identified based on the medicine box specification information of the drug to be identified;

[0099] The drug traceability code in the first posture image and the second posture image is detected based on the traceability code position and the target detection algorithm.

[0100] In an embodiment of the present invention, a medicine dispensing machine is also provided, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the above-mentioned drug traceability code scanning and identification method is implemented.

[0101] In an embodiment of the present invention, a computer-readable storage medium is also provided, and the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned drug traceability code scanning and identification method.

[0102] Exemplarily, the computer program can be divided into one or more modules, one or more modules are stored in the memory and executed by the processor to complete the present invention. One or more modules can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the dispensing machine.

[0103] The medicine dispensing machine may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The medicine dispensing machine may include, but is not limited to, a processor, a memory, and a display. Those skilled in the art will appreciate that the above components are merely examples of the medicine dispensing machine and do not constitute a limitation on the medicine dispensing machine. The medicine dispensing machine may include more or fewer components than the components, or may combine certain components, or different components. For example, the medicine dispensing machine may also include input and output devices, network access devices, buses, and the like.

[0104] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the medicine dispensing machine, and uses various interfaces and lines to connect various parts of the entire medicine dispensing machine.

[0105] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the medicine dispensing machine by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, a text conversion function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, text message data, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0106] Among them, if the module based on scanning and identifying the drug traceability code is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media can include: any entity or device that can carry computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0107] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A drug traceability code scanning and identification method, characterized in that: include: Acquire a first posture image of the drug to be identified, and move the drug to be identified to a drug dispensing conveyor belt, so that the drug to be identified moves on the drug dispensing conveyor belt; A second posture image of the to-be-identified drug moving is acquired, and a drug traceability code of the to-be-identified drug is scanned and identified based on the first posture image and the second posture image.

2. A drug traceability code scanning and identification method as claimed in claim 1, characterized in that: Before acquiring the first posture image of the drug to be identified, the method further includes: Obtain medication dispensing instructions and medication dispensing requirements, and determine the medication to be identified based on the medication dispensing instructions and medication dispensing requirements.

3. A drug traceability code scanning and identification method as claimed in claim 2, characterized in that: The step of acquiring the first posture image of the drug to be identified comprises: Acquire video data of the drug to be identified when it is in a first posture based on a preset first acquisition position; The video data is subjected to frame extraction processing to obtain first image information, wherein the first image information includes a front image of a medicine box of the medicine to be identified.

4. A drug traceability code scanning and identification method as claimed in claim 3, characterized in that: The step of moving the to-be-identified medicine to a medicine dispensing conveyor belt comprises: Calculate the moving distance of the drug based on the drug box specification information and location information of the drug to be identified; The drug to be identified is controlled based on the drug dispensing instruction and the drug moving distance until the drug to be identified moves and falls onto the drug dispensing conveyor belt.

5. A drug traceability code scanning and identification method as claimed in claim 4, characterized in that: The step of acquiring a second posture image of the to-be-identified drug moving includes: The second posture data of the drug to be identified is acquired based on a preset second acquisition position, and a second posture image is acquired based on the second posture data; the second posture image includes side images of the medicine box on four sides of the drug to be identified.

6. A drug traceability code scanning and identification method as claimed in claim 5, characterized in that: The method of scanning and identifying the drug traceability code of the drug to be identified based on the first posture image and the second posture image includes: Determining the traceability code position of the drug to be identified based on the medicine box specification information of the drug to be identified; The drug traceability code in the first posture image and the second posture image is detected based on the traceability code position and the target detection algorithm.

7. A drug traceability code scanning and identification device, characterized in that: include: A first acquisition module and a second acquisition module; The first acquisition module is used to acquire a first posture image of the drug to be identified, and move the drug to be identified to a drug dispensing conveyor belt, so that the drug to be identified moves on the drug dispensing conveyor belt; The second acquisition module is used to obtain a second posture image of the to-be-identified drug moving, and scan and identify the drug traceability code of the to-be-identified drug based on the first posture image and the second posture image.

8. A drug traceability code scanning and identification device as claimed in claim 7, characterized in that: The first acquisition module is used to: Acquire video data of the drug to be identified when it is in a first posture based on a preset first acquisition position; The video data is subjected to frame extraction processing to obtain first image information, wherein the first image information includes a front image of a medicine box of the medicine to be identified.

9. A drug traceability code scanning and identification device as claimed in claim 8, characterized in that: The first acquisition module is used to: Calculate the moving distance of the drug based on the drug box specification information and location information of the drug to be identified; The drug to be identified is controlled based on the drug dispensing instruction and the drug moving distance until the drug to be identified moves and falls onto the drug dispensing conveyor belt.

10. A drug traceability code scanning and identification device as claimed in claim 9, characterized in that: The second acquisition module is used to: The second posture data of the drug to be identified is acquired based on a preset second acquisition position, and a second posture image is acquired based on the second posture data; the second posture image includes side images of the medicine box on four sides of the drug to be identified.