A method, storage medium and computer device for labeling a kit

By establishing a mapping database between drug numbers and product batch numbers during the drug packaging process, abnormal medicine boxes are eliminated and missing medicine boxes are identified. This solves the problem of high computational load in the management system in the existing technology, and achieves the effect of reducing production costs and failure rate.

CN117446293BActive Publication Date: 2026-01-06ZHONGJING WANXI PHARMA CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311632321.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2026-01-06
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

In the current pharmaceutical packaging process, industrial cameras are used to identify and group the drug numbers on each medicine box, which increases the computational load on the management system and raises production costs.

Method used

A database mapping the relationship between drug numbers and product batch numbers is established. Abnormal medicine boxes are removed through the labeling position, the first conveying section, and the packing position on the conveying device. The distance between adjacent medicine boxes is detected, missing medicine boxes are identified and the database is updated. Finally, the product batch number is printed on the medicine box.

Benefits of technology

This reduces the computational load on the conveying equipment, lowers production costs and failure rates, and improves production efficiency and quality stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117446293B_ABST
    Figure CN117446293B_ABST
Patent Text Reader

Abstract

The application provides a method, a storage medium and a computer device for labeling medicine boxes, wherein the method comprises: establishing a relational database of mapping relationship between medicine numbers and product batch numbers; setting the medicine numbers on the medicine boxes at a labeling position; rejecting abnormal medicine boxes on a first conveying section; detecting interval distances of adjacent medicine boxes on a second conveying section; if the interval distances of the adjacent medicine boxes are not within a preset distance threshold range, there is a missing medicine box between the adjacent medicine boxes, and the medicine numbers of the adjacent medicine boxes are identified; according to the medicine numbers of the adjacent medicine boxes, the medicine number of the missing medicine box is obtained; the relational database is updated according to the medicine number of the missing medicine box; after the medicine boxes are packed at a packing position, the corresponding product batch numbers are obtained from the relational database, and the product batch numbers are printed on the medicine boxes. The scheme can solve the problem of compulsory inspection of each box, reduce the operation load of the management system, and achieve the purposes of reducing the production cost and the failure rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of pharmaceutical packaging technology, and in particular to a method, storage medium, and computer device for labeling medicine boxes. Background Technology

[0002] When packaging pill-shaped traditional Chinese medicine, the pills must be placed into medicine bottles, then the medicine bottles into small medicine boxes, and an inner label with the individual drug batch number must be affixed to the small medicine boxes. Then, multiple small medicine boxes are packaged into small packages using a plastic wrapping device. Finally, multiple small packages are placed into a medicine box, and an outer label matching the inner small packages is affixed to the medicine box. The outer label is printed with the batch drug batch number matching all the small medicine boxes in the medicine box, thus completing the packaging of pill-shaped traditional Chinese medicine in the workshop.

[0003] However, each batch of medicines corresponds to a set quantity and number of individual medicines. If individual medicines from different batches appear in the same medicine box, the batch batch number affixed to the outside of the box will become invalid. The existing method is to identify the medicine number on each medicine box using an industrial camera, then group the medicine numbers and associate them with the corresponding product batch number. However, this method of checking every single box undoubtedly increases the computational load on the corresponding management system, leading to increased production costs and a higher failure rate. Summary of the Invention

[0004] In view of the above problems, the present invention is proposed to provide a method, storage medium and computer device for labeling medicine boxes to overcome or at least partially solve the above problems, which can solve the problem of inspecting every box, reduce the computational load of the management system, and achieve the purpose of reducing production costs and failure rate.

[0005] Specifically, the present invention provides a method for labeling medicine boxes, which is applied to a conveying device equipped with an industrial camera. In the conveying direction of the conveying device, a labeling position, a first conveying section, a second conveying section, and a packing position are sequentially formed, including:

[0006] Establish a relational database that maps drug codes to product batch numbers;

[0007] Extract the drug number in a preset order and set the drug number on the medicine box located at the labeling position;

[0008] Remove any abnormal medicine boxes from the first conveyor section;

[0009] Detect the distance between adjacent medicine boxes on the second conveyor section;

[0010] If the distance between adjacent medicine boxes is not within the preset distance threshold range, then there is a missing medicine box between the adjacent medicine boxes;

[0011] Identify the drug numbers of the adjacent medicine boxes, and obtain the drug number of the missing medicine box based on the drug numbers of the adjacent medicine boxes;

[0012] Update the relational database according to the drug number of the missing medicine box;

[0013] After the medicine box is packed at the packing position, the corresponding product batch number is retrieved from the relational database and printed on the medicine box.

[0014] Optionally, the removal of abnormal medicine boxes on the first conveying section includes:

[0015] The attitude of each medicine box on the first conveying section is obtained, and the attitude is used to determine whether the corresponding medicine box is an abnormal medicine box.

[0016] Optionally, obtaining the attitude of each medicine box on the first conveying section includes:

[0017] Machine vision technology is used to detect each medicine box on the first conveying section to obtain the posture of each medicine box.

[0018] Optionally, detecting the interval distance between adjacent medicine boxes on the second conveying section includes:

[0019] The second conveying section is detected using visual ranging technology to obtain the interval distance between each of the adjacent medicine boxes.

[0020] Optionally, the method further includes:

[0021] The number of medicine boxes on the second conveying section is detected to obtain the number of medicine boxes loaded into the medicine box;

[0022] When the number of medicine boxes packed into the medicine box reaches a preset quantity, it is determined that the medicine box is packed.

[0023] Optionally, detecting the number of medicine boxes on the second conveying section includes:

[0024] Using image recognition technology, the number of medicine boxes on the second conveying section is obtained based on the image of the second conveying section.

[0025] Optionally, before detecting the number of medicine boxes on the second conveying section, the method further includes:

[0026] Obtain the capacity of the medicine box at the packing position, and obtain the preset quantity based on the capacity.

[0027] Optionally, setting the drug number on the medicine box located at the labeling position includes:

[0028] The drug number is marked on the medicine box located at the labeling position using laser marking.

[0029] According to another aspect of the invention, a machine-readable storage medium is also provided, on which a machine-executable program is stored, which, when executed by a processor, implements any of the above-described methods for labeling medicine boxes.

[0030] According to another aspect of the present invention, a computer device is also provided, including a memory, a processor, and a machine-executable program stored in the memory and running on the processor, wherein the processor, when executing the machine-executable program, implements any of the above-described methods for labeling medicine boxes.

[0031] In a method for labeling medicine boxes according to the present invention, a database describing the mapping relationship between drug numbers and product batch numbers is first established. When the medicine boxes are transported on a conveyor, the drug number is set on the medicine box at the labeling position. Medicine boxes with abnormalities are removed in the first conveyor section. Then, in the second conveyor section, the interval distance between adjacent medicine boxes is detected, and the drug numbers of adjacent medicine boxes whose interval distance is not within a preset distance threshold range are identified. Next, the drug numbers of missing medicine boxes are obtained according to the drug number and the drug number sorting in the drug number database. Then, the relational database is updated according to the drug numbers of missing medicine boxes. Finally, after the medicine boxes are packed, the corresponding product batch number is obtained from the relational database and printed on the medicine boxes. Because the technical solution of the present invention only needs to identify the drug numbers of adjacent medicine boxes whose interval distance is not within the preset distance threshold range, it is not necessary to identify the drug codes of each medicine box individually. Therefore, the computational load of the conveyor device can be reduced, thereby reducing production costs and lowering the failure rate.

[0032] The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments of the invention in conjunction with the accompanying drawings. Attached Figure Description

[0033] The following sections will describe some specific embodiments of the invention in detail by way of example and not limitation, with reference to the accompanying drawings. The same reference numerals in the drawings denote the same or similar parts or portions. Those skilled in the art should understand that these drawings are not necessarily drawn to scale. In the drawings:

[0034] Figure 1 This is a schematic flowchart of a medicine box label detection method according to an embodiment of the present invention;

[0035] Figure 2 This is a schematic diagram of a conveying device according to an embodiment of the present invention;

[0036] Figure 3 This is a schematic flowchart of a method for removing abnormal medicine boxes on a first conveying section according to an embodiment of the present invention;

[0037] Figure 4 This is a schematic flowchart of a medicine box label detection method according to an embodiment of the present invention.

[0038] Figure 5 This is a schematic diagram of a machine-readable storage medium according to an embodiment of the present invention;

[0039] Figure 6 This is a schematic diagram of a computer device according to an embodiment of the present invention; Detailed Implementation

[0040] The following reference Figures 1 to 6 This invention describes a method, storage medium, and apparatus for terminating task execution according to embodiments of the present invention. In this description, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature, that is, include one or more of that feature. In the description of the present invention, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. When a feature "includes or contains" one or more of the features it encompasses, unless otherwise specifically described, this indicates that other features are not excluded and may be further included.

[0041] In the description of this embodiment, the terms "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0042] In one embodiment of the present invention, the process of the method for labeling medicine boxes is as follows: Figure 1 The method shown is applied to a conveyor device with an industrial camera, used to set drug numbers on medicine boxes and product batch numbers on medicine cartons, and to ensure that the mapping relationship between production batch numbers and drug numbers stored in the relational database is the same as the product batch number of the medicine carton and the drug number of the medicine box being packed.

[0043] In this embodiment, the conveying device for labeling medicine boxes according to this embodiment is as follows: Figure 2 As shown, the conveying device is equipped with an industrial camera 20, which can capture images of the conveying device. The conveying device sequentially forms a labeling position 11, a first conveying section 12, a second conveying section 13, and a packing position 14 along its conveying direction. When a medicine box 30 is located at the labeling position 11, the labeling device sets the medicine number on the labeling position. When a medicine box 30 is located on the first conveying section 12, if the medicine box 30 is abnormal, it will be removed from the conveying device 10 and placed in a waste box. Then, the medicine box 30 is conveyed through the second conveying section 13 to the packing position 14, where it is placed into a medicine box 40, thus completing the packing operation of the medicine box 40. After the medicine box 40 at the packing position 14 is packed, the batch number printing device prints the product batch number corresponding to each medicine box 30 in the medicine box 40 onto the medicine box 40.

[0044] The following is combined with Figure 1 The flowchart shown provides a detailed description of the method for labeling medicine boxes in this embodiment.

[0045] like Figure 1 As shown, the method for labeling medicine boxes in this embodiment includes the following steps:

[0046] Step S110: Establish a relational database that maps drug numbers to product batch numbers;

[0047] Step S120: Extract the drug number in a preset order and set the drug number on the medicine box located at the labeling position;

[0048] Step S130: Remove any abnormal medicine boxes on the first conveying section;

[0049] Step S140: Detect the interval distance between adjacent medicine boxes on the second conveyor section;

[0050] Step S150: Determine whether there are missing medicines between adjacent medicine boxes based on whether the interval between adjacent medicine boxes on the second conveying section is within the preset distance threshold range.

[0051] If yes, proceed to step S180; otherwise, proceed to step S160.

[0052] Step S160: Identify the drug number of the adjacent medicine box with missing medicine, and obtain the drug number of the missing medicine box based on the drug number of the adjacent medicine box.

[0053] Step S170: Update the relational database according to the drug number of the missing medicine box;

[0054] Step S180: After the medicine boxes are packed in the packing position, the corresponding product batch number is retrieved from the relational database and printed on the medicine box.

[0055] In step S110 above, an initial database describing the mapping relationship between drug numbers and product batch numbers needs to be established first. The database generates sequentially arranged consecutive drug numbers and product batch numbers. These consecutive drug numbers are then grouped sequentially, with the number of drug numbers in each group equal to the capacity of the medicine box, and each group corresponding to one product batch number. For example, drug numbers 1, 2, 3, and 4 correspond to product batch number 1001, and drug numbers 5, 6, 7, and 8 correspond to product batch number 1002.

[0056] In step S120 above, since the drug numbers in the relational database are arranged in sequence, consecutive drug numbers can be extracted one by one in sequence, and the extracted drug numbers are set sequentially on the medicine box located at the labeling position.

[0057] In step S130 above, since abnormal medicine boxes are inconvenient to pack, or may cause problems such as poor sealing after packing, which may affect the quality and safety of medicines, it is necessary to find abnormal medicine boxes in the first conveying section and remove them.

[0058] In steps S140 and S150 above, since abnormal pillboxes are removed in the first conveying section, there will be a missing pillbox between two adjacent pillboxes after they reach the second conveying section. Since the interval between adjacent pillboxes on the conveying device is within a preset distance threshold range when there is no missing pillbox between them, the interval between adjacent pillboxes with missing pillboxes after they reach the second conveying section will definitely not be within the preset distance threshold range, while the interval between adjacent pillboxes without missing pillboxes will definitely be within the preset distance threshold range.

[0059] In step S160 above, images of adjacent medicine boxes of the missing medicine box are input into the machine vision system; the images are preprocessed, and a specific algorithm is used to extract label feature information from the preprocessed images; the extracted feature information is compared with a preset label template to identify the label content, thereby obtaining the medicine number of the adjacent medicine boxes of the missing medicine box. Since the medicine numbers of adjacent medicine boxes are consecutive, the medicine number of the missing medicine box can be obtained by sorting the medicine numbers of the two adjacent medicine boxes of the missing medicine box. Since this embodiment only needs to identify the adjacent medicine boxes of the missing medicine box, and does not need to identify each medicine box individually, this embodiment reduces the computational load of the corresponding management system, resulting in reduced production costs and a lower failure rate.

[0060] In step S170 above, the missing medicine box causes the drug numbers of adjacent medicine boxes to no longer be consecutive, further resulting in the drug numbers in the relational database not matching the drug numbers on the medicine boxes. Ultimately, this leads to an inconsistency between the correspondence between drug numbers and product batch numbers in the relational database and actual production. Therefore, the relational database needs to be updated to ensure consistency between the correspondence in the relational database and actual production. Since the drug numbers in the relational database are consecutive and grouped sequentially, the update process requires first deleting the drug numbers of the missing medicine boxes, and then regrouping the drug numbers sequentially.

[0061] In step S180 above, since the product batch numbers in the relational database are arranged sequentially and continuously, they can be extracted one by one simply by following the order. Because the relational database stores an accurate mapping relationship between production batch numbers and drug numbers, it can be guaranteed that the mapping relationship between production batch numbers and drug numbers stored in the relational database is the same as the product batch number of the medicine box and the drug number of the medicine box containing the medicine.

[0062] In this embodiment, a database describing the mapping relationship between drug numbers and product batch numbers is first established. When the medicine box is transported on the conveyor, the drug number is set on the medicine box at the labeling position. Abnormal medicine boxes are removed in the first conveyor section. Then, in the second conveyor section, the interval distance between adjacent medicine boxes is detected, and the drug numbers of adjacent medicine boxes whose interval distance is not within a preset distance threshold range are identified. Next, the drug number of the missing medicine box is obtained according to the drug number and the drug number sorting in the drug number database. Then, the relational database is updated according to the drug number of the missing medicine box. Finally, after the medicine box is packed, the corresponding product batch number is obtained from the relational database and printed on the medicine box. Since this embodiment only needs to identify the drug numbers of adjacent medicine boxes whose interval distance is not within the preset distance threshold range, it does not need to identify the drug codes of each medicine box individually. Therefore, the computational load of the conveyor device can be reduced, thereby reducing production costs and lowering the failure rate.

[0063] In some embodiments of the present invention, the method for removing abnormal medicine boxes on the first conveying section in step S130 is as follows: Figure 3 As shown, it includes the following steps:

[0064] Step S301: Obtain the attitude of each medicine box on the first conveyor section;

[0065] Step S302: Based on the posture of each medicine box, determine whether the corresponding medicine box is an abnormal medicine box.

[0066] In steps S301 and S302 above, after obtaining the posture of the medicine box, it is determined whether the posture of the medicine box is a preset posture. The preset posture is the posture of a medicine box that meets the production standard, that is, the medicine box is undamaged and its placement meets the packing requirements. If the posture of the medicine box is not the preset posture, it means that the production of the medicine box is substandard and there is an abnormal medicine box. Therefore, by obtaining the posture of the medicine box, problems can be detected and resolved in a timely manner, ensuring the stability and reliability of production efficiency and quality.

[0067] In some embodiments of the present invention, the method for obtaining the posture of each medicine box on the first conveying section in step S301 above includes: using machine vision technology to detect each medicine box on the first conveying section to obtain the posture of each medicine box.

[0068] For example, an image of the first conveyor section can be captured first using an industrial camera, and then the medicine box can be identified using image recognition technology. For example, a pre-trained convolutional neural network model can be used to analyze the image of the first conveyor section to obtain the image of the medicine box in the image. Then, based on the medicine box image, the tilt angle and rotation angle of the medicine box relative to the reference direction can be obtained to obtain the posture of the corresponding medicine box.

[0069] Machine vision technology can significantly improve the accuracy and efficiency of inspection. Detecting the posture of medicine boxes involves image processing and analysis; machine vision technology can quickly and accurately identify and determine the placement of the medicine boxes, avoiding errors and tediousness associated with manual inspection. Furthermore, machine vision technology can automate and enable batch processing, greatly improving inspection efficiency and reducing production costs.

[0070] In some embodiments of the present invention, the method for detecting the interval distance between adjacent medicine boxes on the second conveying section in step S140 above includes:

[0071] Visual ranging technology is used to obtain the distance between adjacent medicine boxes on the second conveying section.

[0072] For example, images of the second conveyor section can be captured first using an industrial camera. Then, image recognition technology can be used to identify the medicine boxes within them. For instance, a pre-trained convolutional neural network model can be used to process the images of the second conveyor section to obtain images of each medicine box within those images, and the distance between adjacent medicine box images in the second conveyor section can be determined. Then, based on the conversion relationship between the image distance and the actual distance from the industrial camera, the distance between adjacent medicine box images can be converted into the actual distance between the corresponding adjacent medicine boxes, i.e., the distance between adjacent medicine boxes. Because the accuracy of visual ranging technology is much higher than that of traditional ranging technology, and because visual ranging technology is a non-contact measurement method, it can avoid the errors caused by contact in traditional contact measurement methods. Therefore, visual ranging technology can greatly improve the accuracy of detection.

[0073] In some embodiments of the present invention, such as Figure 4 As shown, the method for labeling medicine boxes also includes the following steps:

[0074] Step S171: Detect the number of medicine boxes on the second conveyor section to obtain the number of medicine boxes loaded into the medicine box;

[0075] Step S172: When the number of medicine boxes packed into the medicine box reaches the preset number, it is determined that the medicine box packing is complete.

[0076] Since the medicine boxes are conveyed to the packing station via the second conveyor section, the number of medicine boxes passing through the second conveyor section is the number of medicine boxes to be packed. Therefore, in this embodiment, machine vision technology is used to identify the medicine box photos to obtain the number of medicine boxes. Because this embodiment does not require the introduction of new equipment to obtain the number of medicine boxes, it can save on hardware costs.

[0077] In some embodiments of the present invention, image recognition technology is used to obtain the number of medicine boxes on the second conveying section based on the image of the second conveying section.

[0078] In some embodiments of the present invention, before detecting the number of medicine boxes on the second conveying section in step S174 above, the method further includes:

[0079] Get the capacity of the medicine box at the packing station, and use the capacity value of the medicine box at the packing station as the value of the preset quantity.

[0080] In actual production, the capacity of the medicine box may vary. Users can input data into the conveying equipment based on the capacity of the medicine box at the packing position. After receiving the user's input data, the conveying equipment can obtain the capacity of the medicine box at the packing position based on the user's input data and use the value of the capacity of the medicine box at the packing position as the preset quantity value.

[0081] In some embodiments of the present invention, the marking device of the conveying device is a laser marking device, and the method of setting the drug number on the medicine box located at the first labeling position in step S120 includes:

[0082] The drug number is marked on the medicine box at the labeling position using laser marking.

[0083] Because laser marking is much faster than traditional mechanical marking and has a relatively lower cost, using laser marking can not only greatly improve production efficiency but also reduce marking costs.

[0084] This embodiment also provides a machine-readable storage medium and a computer device. Figure 5 This is a schematic diagram of a machine-readable storage medium 40 according to an embodiment of the present invention. Figure 6 This is a schematic diagram of a computer device 50 according to an embodiment of the present invention.

[0085] The machine-readable storage medium 40 stores a machine-executable program 41 thereon, which, when executed by a processor, implements the method for labeling medicine boxes according to any of the above embodiments.

[0086] Computer device 50 may include memory 520, processor 510, and machine-executable program 41 stored in memory 520 and running on processor 510, and processor 510 implements the method for labeling medicine boxes according to any of the above embodiments when executing machine-executable program 41.

[0087] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any machine-readable storage medium for use by, or in conjunction with, an instruction execution system, apparatus or device (such as a computer-based system, a processor-based system or other system that can fetch and execute instructions from, an instruction execution system, apparatus or device).

[0088] For the purposes of this embodiment, the machine-readable storage medium 40 can be any means capable of containing, storing, communicating, propagating, or transmitting a program for use by or in conjunction with an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, the computer-readable medium 40 can even be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0089] It should be understood that various parts of the present invention can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system.

[0090] Computer device 50 can be, for example, a server, desktop computer, laptop computer, tablet computer, or smartphone. In some examples, computer device 50 can be a cloud computing node. Computer device 50 can be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. Typically, program modules can include routines, programs, object programs, components, logic, data structures, etc., that perform specific tasks or implement specific abstract data types. Computer device 50 can be implemented in a distributed cloud computing environment where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can reside on local or remote computing system storage media, including storage devices.

[0091] Computer device 50 may include a processor 510 adapted to execute stored instructions and a memory 520 that provides temporary storage space for the operation of said instructions during operation. The processor 510 may be a single-core processor, a multi-core processor, a computing cluster, or any other configuration. The memory 520 may include random access memory (RAM), read-only memory, flash memory, or any other suitable storage system.

[0092] The processor 510 can be connected via a system interconnect (e.g., PCI, PCI-Express, etc.) to an I / O interface (input / output interface) suitable for connecting the computer device 50 to one or more I / O devices (input / output devices). I / O devices may include, for example, a keyboard and indicating devices, where indicating devices may include a touchpad or touchscreen, etc. I / O devices may be built into the computer device 50 or may be external devices connected to the computing device.

[0093] The processor 510 can also be linked via a system interconnect to a display interface suitable for connecting the computer device 50 to a display device. The display device may include a display screen that is a built-in component of the computer device 50. The display device may also include an external computer monitor, television, or projector connected to the computer device 50. Furthermore, a network interface controller (NIC) may be adapted to connect the computer device 50 to a network via a system interconnect. In some embodiments, the NIC may use any suitable interface or protocol (such as an Internet Minicomputer System Interface) to transmit data. The network may be a cellular network, a radio network, a wide area network (WAN), a local area network (LAN), or the Internet, etc. Remote devices can connect to the computing device via the network.

[0094] The flowchart provided in this embodiment is not intended to indicate that the operations of the method will be performed in any particular order, or that all operations of the method are included in every case. Furthermore, the method may include additional operations. Within the scope of the technical concept provided by the method in this embodiment, additional variations can be made to the above method.

[0095] Therefore, those skilled in the art should recognize that although numerous exemplary embodiments of the present invention have been shown and described in detail herein, many other variations or modifications conforming to the principles of the present invention can be directly determined or derived from the disclosure of the present invention without departing from the spirit and scope of the invention. Thus, the scope of the present invention should be understood and construed as covering all such other variations or modifications.

Claims

1.A method for labeling medicine boxes, applied to a conveying device with an industrial camera, wherein a labeling position, a first conveying section, a second conveying section and a boxing position are sequentially formed in the conveying direction of the conveying device; the method comprising: establishing a relational database mapping the relationship between medicine numbers and product batch numbers; extracting medicine numbers in a preset order and setting the medicine numbers to the medicine boxes located at the labeling position; rejecting the medicine boxes with abnormalities on the first conveying section; detecting the interval distance between adjacent medicine boxes on the second conveying section; if the interval distance between the adjacent medicine boxes is not within a preset distance threshold range, there is a missing medicine box between the adjacent medicine boxes; identifying the medicine numbers of the adjacent medicine boxes and obtaining the medicine number of the missing medicine box according to the medicine numbers of the adjacent medicine boxes; updating the relational database according to the medicine number of the missing medicine box; and after the boxing of the medicine boxes is completed at the boxing position, obtaining the corresponding product batch number from the relational database and printing the product batch number on the medicine box. characterized in that 2.The method for labeling medicine boxes according to claim 1, wherein the rejecting the medicine boxes with abnormalities on the first conveying section comprises: obtaining the posture of each medicine box on the first conveying section and determining whether the corresponding medicine box is a medicine box with abnormalities according to the posture. 3.The method for labeling medicine boxes according to claim 2, wherein the obtaining the posture of each medicine box on the first conveying section comprises: detecting each medicine box on the first conveying section by using machine vision technology to obtain the posture of each medicine box. 4.The method for labeling medicine boxes according to claim 1, wherein the detecting the interval distance between adjacent medicine boxes on the second conveying section comprises: detecting the second conveying section by using visual ranging technology to obtain the interval distance between adjacent medicine boxes. 5.The method for labeling medicine boxes according to claim 1, wherein the method further comprises: detecting the number of medicine boxes on the second conveying section to obtain the number of medicine boxes loaded into the medicine box; and determining that the boxing of the medicine box is completed when the number of medicine boxes loaded into the medicine box reaches a preset number. 6.The method for labeling medicine boxes according to claim 5, wherein the detecting the number of medicine boxes on the second conveying section comprises: obtaining the number of medicine boxes on the second conveying section according to the image of the second conveying section by using image recognition technology. 7.The method for labeling medicine boxes according to claim 5, wherein before the detecting the number of medicine boxes on the second conveying section, the method further comprises: obtaining the capacity of the medicine box at the boxing position and obtaining the preset number according to the capacity. 8.The method for labeling medicine boxes according to claim 1, wherein the setting the medicine numbers to the medicine boxes located at the labeling position comprises: ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ The medicine number is marked on the medicine box at the labeling position by means of laser marking. 9.A machine readable storage medium having stored thereon a machine executable program which, when executed by a processor, implements the method for labeling medicine boxes according to any one of claims 1 to 8. 10.A computer device comprising a memory, a processor, and a machine executable program stored on the memory and running on the processor, and when the processor executes the machine executable program, the method for labeling medicine boxes according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Medicine box control method and drug box

    CN107255941A

  • Production batch tracking code generation method and device based on quality tracing

    CN112435041A