CN115861688A - Drug packaging and container appearance modeling identification and counting method and system - Google Patents
Drug packaging and container appearance modeling identification and counting method and system Download PDFInfo
- Publication number
- CN115861688A CN115861688A CN202211466269.XA CN202211466269A CN115861688A CN 115861688 A CN115861688 A CN 115861688A CN 202211466269 A CN202211466269 A CN 202211466269A CN 115861688 A CN115861688 A CN 115861688A
- Authority
- CN
- China
- Prior art keywords
- recognition
- narcotics
- model
- parameters
- packaging
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000009512 pharmaceutical packaging Methods 0.000 title claims description 40
- 238000004806 packaging method and process Methods 0.000 claims abstract description 90
- 239000003814 drug Substances 0.000 claims abstract description 57
- 238000010801 machine learning Methods 0.000 claims abstract description 29
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 23
- 238000011084 recovery Methods 0.000 claims abstract description 19
- 238000011068 loading method Methods 0.000 claims abstract description 9
- 239000004081 narcotic agent Substances 0.000 claims description 133
- 238000012549 training Methods 0.000 claims description 66
- 229940079593 drug Drugs 0.000 claims description 54
- 230000003533 narcotic effect Effects 0.000 claims description 31
- 238000003062 neural network model Methods 0.000 claims description 24
- 238000004064 recycling Methods 0.000 claims description 20
- 238000004458 analytical method Methods 0.000 claims description 12
- 238000001514 detection method Methods 0.000 claims description 12
- 238000012545 processing Methods 0.000 claims description 10
- 230000000007 visual effect Effects 0.000 claims description 8
- 238000013524 data verification Methods 0.000 claims description 7
- 230000006870 function Effects 0.000 claims description 6
- 238000012795 verification Methods 0.000 claims description 6
- 238000003909 pattern recognition Methods 0.000 claims description 3
- 231100000614 poison Toxicity 0.000 claims description 3
- 230000007096 poisonous effect Effects 0.000 claims description 3
- 239000000843 powder Substances 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 5
- 239000003193 general anesthetic agent Substances 0.000 abstract description 5
- 239000011521 glass Substances 0.000 abstract description 5
- 231100000331 toxic Toxicity 0.000 abstract 6
- 230000002588 toxic effect Effects 0.000 abstract 6
- 230000003444 anaesthetic effect Effects 0.000 abstract 2
- 230000009286 beneficial effect Effects 0.000 description 12
- 230000005540 biological transmission Effects 0.000 description 11
- 238000004364 calculation method Methods 0.000 description 8
- 239000011159 matrix material Substances 0.000 description 6
- 238000007726 management method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 239000000599 controlled substance Substances 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 229940035674 anesthetics Drugs 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000029087 digestion Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02W—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
- Y02W90/00—Enabling technologies or technologies with a potential or indirect contribution to greenhouse gas [GHG] emissions mitigation
Landscapes
- Medical Preparation Storing Or Oral Administration Devices (AREA)
Abstract
Description
技术领域technical field
本发明涉及信息处理技术领域,尤其涉及一种药品包装和容器外形建模识别和计数方法及系统。The invention relates to the technical field of information processing, in particular to a drug packaging and container shape modeling recognition and counting method and system.
背景技术Background technique
麻醉药品是管控药品,人工管理费时费力,智能药柜管理是趋势,但空容器精准回收是关键环节,需要识别容器种类、数目,空容器定点投放,集中取出等问题,目前识别回收容器的主要方法为容器贴OCR码识别方法,上述方法只能适用于容器的单个回收,影响高峰用药期间工作效率,需要单独处理、不能广泛应用于临床工作,降低了回收效率。Narcotic drugs are controlled drugs, manual management is time-consuming and labor-intensive, and intelligent medicine cabinet management is the trend, but precise recycling of empty containers is a key link. It is necessary to identify the type and number of containers, fixed-point delivery of empty containers, and centralized removal. Currently, the main methods for identifying recycling containers The method is the OCR code identification method on the container. The above method can only be applied to a single recycling of the container, which affects the work efficiency during the peak medication period. It needs to be processed separately and cannot be widely used in clinical work, which reduces the recycling efficiency.
发明内容Contents of the invention
针对上述所显示出来的问题,本发明提供了一种药品包装和容器外形建模识别和计数方法及系统用以解决背景技术中提到的传统技术只能适用于容器的单个回收,影响高峰用药期间工作效率,需要单独处理、不能广泛应用于临床工作,降低了回收效率。In view of the problems shown above, the present invention provides a drug packaging and container shape modeling recognition and counting method and system to solve the problem that the traditional technology mentioned in the background technology can only be applied to a single recovery of the container, which affects peak drug use During the work efficiency, it needs to be processed separately and cannot be widely used in clinical work, which reduces the recovery efficiency.
一种药品包装和容器外形建模识别和计数方法,包括以下步骤:A pharmaceutical packaging and container shape modeling recognition and counting method, comprising the following steps:
通过预设图像采集方式采集N张毒麻药品的包装容器外形图像数据;Collect N pieces of image data of the packaging container shape of narcotic drugs through a preset image collection method;
设置毒麻药品的包装容器图像的识别模式;Set the recognition mode of the packaging container image of narcotic drugs;
基于所述识别模式通过YOLOv5机器学习算法对所述N张毒麻药品的包装容器外形图像数据进行学习建模,获取识别模型;Carry out learning and modeling on the packaging container outline image data of the N pieces of narcotics and narcotic drugs through the YOLOv5 machine learning algorithm based on the recognition pattern, and obtain the recognition model;
将所述识别模型加载到终端应用程序中对毒麻药品进行批量识别计数回收。The recognition model is loaded into the terminal application program to carry out batch recognition, counting and recovery of narcotics and narcotics.
优选的,所述通过预设图像采集方式采集N张毒麻药品的包装容器外形图像数据,包括:Preferably, the acquisition of N pieces of packaging container shape image data of narcotics and narcotics through a preset image acquisition method includes:
根据所述预设图像采集方式设置图像采集条件,所述图像采集条件包括:光照条件和置地条件;Setting image acquisition conditions according to the preset image acquisition mode, the image acquisition conditions include: lighting conditions and ground conditions;
根据所述图像采集条件设定摄像头的拍摄角度和焦距参数;Setting the shooting angle and focal length parameters of the camera according to the image acquisition conditions;
检测毒麻药品的包装容器在预设排列序列中的排列情况;Detect the arrangement of the packaging containers of narcotic drugs in the preset arrangement sequence;
根据所述排列情况判断是否符合图像采集需求,若是,通过预设图像采集方式控制摄像头以设定参数采集N张毒麻药品的包装容器外形图像数据。According to the arrangement, it is judged whether the requirements for image acquisition are met, and if so, the camera is controlled by the preset image acquisition mode to set parameters to acquire N pieces of image data of the packaging containers of narcotics and narcotics.
优选的,所述所述设置毒麻药品的包装容器图像的识别模式,包括:Preferably, said setting the recognition mode of the packaging container image of narcotic drugs includes:
获取毒麻药品包装容器的瓶颈参数、视觉参数以及容器内部溶液或粉剂的状态参数;Obtain the bottleneck parameters, visual parameters and state parameters of the solution or powder inside the container for narcotics and narcotics packaging containers;
根据所述视觉参数获取毒麻药品包装容器的标签图案识别参数和形状识别参数,根据所述容器内部溶液或粉剂的状态参数获取毒麻药品的空瓶识别参数,根据所述瓶颈参数获取毒麻药品的使用状态识别参数;Obtain the label pattern recognition parameters and shape recognition parameters of the narcotics packaging container according to the visual parameters; Drug use state identification parameters;
基于所有识别参数确定毒麻药品的包装容器的多种显示状态;Determining various display states of the packaging container of narcotic drugs based on all identification parameters;
构建每种显示状态对应的识别规则并生成该显示状态对应的识别模式。A recognition rule corresponding to each display state is constructed and a recognition pattern corresponding to the display state is generated.
优选的,在基于所述识别模式通过YOLOv5机器学习算法对所述N张毒麻药品的包装容器外形图像数据进行学习建模,获取识别模型之前,还包括:Preferably, before learning and modeling the outer shape image data of the packaging containers of the N drugs and narcotics through the YOLOv5 machine learning algorithm based on the recognition pattern, and obtaining the recognition model, it also includes:
获取预设YOLOv4机器学习模型的模型参数;Obtain the model parameters of the preset YOLOv4 machine learning model;
在所述模型参数中筛选出模型输入端参数、基准网络参数、Neck网络参数和Head输出层参数;Screen out model input terminal parameters, benchmark network parameters, Neck network parameters and Head output layer parameters in the model parameters;
对所述模型输入端参数、基准网络参数、Neck网络参数和Head输出层参数进行优化;Optimizing the model input parameters, reference network parameters, Neck network parameters and Head output layer parameters;
根据优化后的YOLOv4机器学习模型获取YOLOv5机器学习算法。Obtain the YOLOv5 machine learning algorithm based on the optimized YOLOv4 machine learning model.
优选的,所述基于所述识别模式通过YOLOv5机器学习算法对所述N张毒麻药品的包装容器外形图像数据进行学习建模,获取识别模型,包括:Preferably, based on the recognition pattern, the YOLOv5 machine learning algorithm is used to learn and model the shape image data of the packaging container of the N drugs and narcotics, and obtain a recognition model, including:
将N张毒麻药品的包装容器外形图像划分为M张训练图像和N-M张验证图像并分别生成数据训练集和数据验证集;Divide N images of the packaging container shape of narcotic drugs into M training images and N-M verification images and generate a data training set and a data verification set respectively;
将M张训练图像按照每个训练组的预设数据承载数量划分为多个训练数据组,设置训练数据组的单次批量处理数据最大数量和超参数以及分辨率;Divide the M training images into a plurality of training data groups according to the preset data load quantity of each training group, and set the maximum number of single batch processing data, hyperparameters and resolution of the training data group;
将YOLOv5机器学习算法和识别模式写入到预设神经网络模型中,利用所述预设神经网络模型对多个训练数据组中的训练图像进行六次识别训练;Writing the YOLOv5 machine learning algorithm and the recognition pattern into the preset neural network model, utilizing the preset neural network model to carry out six recognition trainings to the training images in a plurality of training data sets;
对六次训练后的预设神经网络模型的输出数据进行误差分析,根据分析结果确定训练模型是否合格,若是,将其确认为识别模型。Perform error analysis on the output data of the preset neural network model after six trainings, determine whether the training model is qualified according to the analysis results, and if so, confirm it as the recognition model.
优选的,所述将所述识别模型加载到终端应用程序中对毒麻药品进行批量识别计数回收,包括:Preferably, the loading of the identification model into the terminal application program to perform batch identification, counting and recycling of narcotics includes:
将所述识别模型进行编码以获取编码结果,将所述编码结果写入到所述终端应用程序中以生成毒麻药品识别程序;Encoding the identification model to obtain an encoding result, and writing the encoding result into the terminal application program to generate a narcotics identification program;
采集待识别毒麻药品包装容器的目标图像,利用所述毒麻药品识别程序对目标图像进行识别以确定容器数量和容器种类以及容器使用状态;Collect the target image of the narcotics packaging container to be identified, and use the narcotics identification program to identify the target image to determine the number of containers, the type of the container, and the use status of the container;
根据容器数量和容器种类以及容器使用状态对毒麻药品包装容器进行批量归类回收处理;Classify and recycle the packaging containers of narcotic drugs in batches according to the number and type of containers and the state of use of the containers;
将毒麻药品包装容器的计数识别信息加入到备案系统与取药人和还药人的信息相匹配;Add the counting identification information of narcotics and narcotics packaging containers to the filing system to match the information of the person who takes the drug and the person who returns it;
若不匹配,生成信息不匹配提示通过预设信息平台告知用药医生和药品管理员。If it does not match, an information mismatch prompt is generated to inform the medication doctor and the drug administrator through the preset information platform.
优选的,所述对六次训练后的预设神经网络模型的输出数据进行误差分析,根据分析结果确定训练模型是否合格,若是,将其确认为识别模型,包括:Preferably, the error analysis is performed on the output data of the preset neural network model after the six trainings, and whether the training model is determined to be qualified according to the analysis results, if so, is confirmed as a recognition model, including:
通过数据验证集中的验证图像输入到所述训练后的预设神经网络模型进行识别,获取识别结果;Inputting the verification image in the data verification set to the trained preset neural network model for recognition, and obtaining the recognition result;
根据所述识别结果确定训练后的预设神经网络模型的识别错误概率,根据所述识别错误概率分析出训练后的预设神经网络模型的识别误差;Determine the recognition error probability of the trained preset neural network model according to the recognition result, and analyze the recognition error of the trained preset neural network model according to the recognition error probability;
确认所述识别误差是否在预设误差阈值范围内,若是,确定训练模型合格,若否,确定所述训练模型不合格;Confirm whether the recognition error is within the preset error threshold range, if yes, determine that the training model is qualified, if not, determine that the training model is unqualified;
当确认训练模型合格后,将其确认为所述识别模型。When it is confirmed that the training model is qualified, it is confirmed as the recognition model.
优选的,所述方法还包括:Preferably, the method also includes:
获取所述识别模型的模型参数,根据所述模型参数获取识别模型的损失函数均值、检测loss均值、分类loss均值、精度值和召回率阈值;Obtaining the model parameters of the recognition model, and obtaining the mean value of the loss function, the mean value of the detection loss, the mean value of the classification loss, the precision value and the threshold value of the recall rate of the recognition model according to the model parameters;
根据所述损失函数均值和检测loss均值确定识别模型的检测精度;Determine the detection accuracy of the recognition model according to the loss function mean value and the detection loss mean value;
基于所述分类loss均值确定识别模型的分类精度;determining the classification accuracy of the recognition model based on the classification loss mean value;
根据所述精度值和召回率阈值确定识别模型的识别精度,基于所述检测精度、分类精度和识别精度确定识别模型是否需要继续训练。The recognition accuracy of the recognition model is determined according to the precision value and the recall rate threshold, and whether the recognition model needs to continue training is determined based on the detection precision, classification precision and recognition precision.
优选的,所述根据容器数量和容器种类以及容器使用状态对毒麻药品包装容器进行批量归类回收处理,包括:Preferably, the batch sorting and recycling of the narcotics and narcotics packaging containers according to the number of containers, the type of containers and the state of use of the containers includes:
根据所述容器种类将待识别毒麻药品包装容器进行划分,获取第一划分结果;Divide the packaging containers of narcotics and narcotics to be identified according to the type of the container, and obtain the first division result;
根据所述容器使用状态对所述第一划分结果中每种毒麻药品包装容器进行使用完毕空瓶和未使用完毕半瓶以及未使用全瓶进行划分,获取第二划分结果;Carry out used empty bottles, unused half bottles, and unused full bottles for each of the poisonous and narcotic drug packaging containers in the first classification result according to the use state of the container, and obtain the second classification result;
根据所述第一划分结果和第二划分结果选择适配的回收模式对毒麻药品包装容器进行批量回收处理。According to the first classification result and the second classification result, an adapted recovery mode is selected to perform batch recovery processing on the packaging containers of narcotics and narcotics.
一种药品包装和容器外形建模识别和计数系统,该系统包括:A pharmaceutical packaging and container shape modeling recognition and counting system, the system includes:
采集模块,用于通过预设图像采集方式采集N张毒麻药品的包装容器外形图像数据;The collection module is used to collect N pieces of packaging container shape image data of narcotic drugs through a preset image collection method;
设置模块,用于设置毒麻药品的包装容器图像的识别模式;The setting module is used to set the recognition mode of the packaging container image of narcotic drugs;
建模模块,用于基于所述识别模式通过YOLOv5机器学习算法对所述N张毒麻药品的包装容器外形图像数据进行学习建模,获取识别模型;A modeling module, for learning and modeling the packaging container outline image data of the N pieces of narcotics and narcotics through the YOLOv5 machine learning algorithm based on the recognition pattern, to obtain a recognition model;
加载模块,用于将所述识别模型加载到终端应用程序中对毒麻药品进行批量识别计数回收。The loading module is used to load the recognition model into the terminal application program to perform batch recognition, counting and recovery of narcotics and narcotics.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and appended drawings.
下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.
附图说明Description of drawings
附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。The accompanying drawings are used to provide a further understanding of the present invention, and constitute a part of the description, and are used together with the embodiments of the present invention to explain the present invention, and do not constitute a limitation to the present invention.
图1为本发明所提供的一种药品包装和容器外形建模识别和计数方法的工作流程图;Fig. 1 is a working flow chart of a drug packaging and container shape modeling recognition and counting method provided by the present invention;
图2为本发明所提供的一种药品包装和容器外形建模识别和计数方法的另一工作流程图;Fig. 2 is another work flow chart of a kind of pharmaceutical packaging and container shape modeling identification and counting method provided by the present invention;
图3为本发明所提供的一种药品包装和容器外形建模识别和计数方法的又一工作流程图;Fig. 3 is yet another work flow chart of a kind of pharmaceutical packaging and container shape modeling identification and counting method provided by the present invention;
图4为本发明所提供的一种药品包装和容器外形建模识别和计数系统的结构示意图。Fig. 4 is a structural schematic diagram of a pharmaceutical packaging and container shape modeling recognition and counting system provided by the present invention.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
麻醉药品是管控药品,人工管理费时费力,智能药柜管理是趋势,但空容器精准回收是关键环节,需要识别容器种类、数目,空容器定点投放,集中取出等问题,目前识别回收容器的主要方法为容器贴OCR码识别方法,上述方法只能适用于容器的单个回收,影响高峰用药期间工作效率,需要单独处理、不能广泛应用于临床工作,降低了回收效率。为了解决上述问题,本实施例公开了一种药品包装和容器外形建模识别和计数方法。Narcotic drugs are controlled drugs, manual management is time-consuming and labor-intensive, and intelligent medicine cabinet management is the trend, but precise recycling of empty containers is a key link. It is necessary to identify the type and number of containers, fixed-point delivery of empty containers, and centralized removal. Currently, the main methods for identifying recycling containers The method is the OCR code identification method on the container. The above method can only be applied to a single recycling of the container, which affects the work efficiency during the peak medication period. It needs to be processed separately and cannot be widely used in clinical work, which reduces the recycling efficiency. In order to solve the above-mentioned problems, the present embodiment discloses a method for identifying and counting pharmaceutical packaging and container shape modeling.
一种药品包装和容器外形建模识别和计数方法,如图1所示,包括以下步骤:A pharmaceutical packaging and container shape modeling recognition and counting method, as shown in Figure 1, comprises the following steps:
步骤S101、通过预设图像采集方式采集N张毒麻药品的包装容器外形图像数据;Step S101, collecting N pieces of image data of the packaging containers of narcotics and narcotics through a preset image collection method;
步骤S102、设置毒麻药品的包装容器图像的识别模式;Step S102, setting the recognition mode of the packaging container image of narcotic drugs;
步骤S103、基于所述识别模式通过YOLOv5机器学习算法对所述N张毒麻药品的包装容器外形图像数据进行学习建模,获取识别模型;Step S103, based on the recognition pattern, use the YOLOv5 machine learning algorithm to learn and model the shape image data of the N packages of narcotics and narcotics, and obtain a recognition model;
步骤S104、将所述识别模型加载到终端应用程序中对毒麻药品进行批量识别计数回收。Step S104, loading the recognition model into the terminal application program to perform batch recognition, counting and recycling of narcotics.
在本实施例中,预设图像采集方式可以为扫描、拍摄、传输、上传等方式;In this embodiment, the preset image acquisition method may be scanning, shooting, transmission, uploading, etc.;
在本实施例中,识别模式包括对毒麻药品的包装容器的外观识别和形状识别以及颜色识别和状态识别;In this embodiment, the recognition mode includes appearance recognition, shape recognition, color recognition and state recognition of the packaging container of narcotic drugs;
在本实施例中,加载方式可以通过小程序的形式或者应用的形式加载到终端应用程序中。In this embodiment, the loading method may be loaded into the terminal application in the form of a small program or in the form of an application.
上述技术方案的工作原理为:通过预设图像采集方式采集N张毒麻药品的包装容器外形图像数据,设置毒麻药品的包装容器图像的识别模式,基于所述识别模式通过YOLOv5机器学习算法对所述N张毒麻药品的包装容器外形图像数据进行学习建模,获取识别模型,将所述识别模型加载到终端应用程序中对毒麻药品进行批量识别计数回收。The working principle of the above-mentioned technical solution is as follows: collect N pieces of packaging container shape image data of narcotics and narcotics through a preset image collection method, set the recognition mode of the packaging container image of narcotics and narcotics, based on the recognition mode, use the YOLOv5 machine learning algorithm to The shape image data of the packaging containers of the N pieces of narcotics and narcotics are learned and modeled to obtain a recognition model, and the recognition model is loaded into the terminal application program to perform batch recognition, counting and recovery of narcotics and narcotics.
上述技术方案的有益效果为:通过利用毒麻药品玻璃容器的图像数据和为其设置的识别模式来利用机器学习算法对图像数据进行识别学习建模进而获得识别模型来自动地对批量的毒麻药品玻璃容器进行识别技术回收,提高了回收效率,极大地节省了时间成本,解决了传统技术只能适用于容器的单个回收,影响高峰用药期间工作效率,需要单独处理、不能广泛应用于临床工作,降低了回收效率的问题。The beneficial effect of the above technical solution is: by using the image data of the glass container of narcotics and narcotics and the recognition mode set for it, the machine learning algorithm is used to carry out recognition and learning modeling on the image data, and then the recognition model is obtained to automatically identify batches of narcotics and narcotics. Recycling of drug glass containers with identification technology improves recycling efficiency and greatly saves time and cost. It solves the problem that traditional technology can only be applied to a single container recycling, which affects work efficiency during peak drug use. It needs to be processed separately and cannot be widely used in clinical work. , reducing the problem of recovery efficiency.
在一个实施例中,如图2所示,所述通过预设图像采集方式采集N张毒麻药品的包装容器外形图像数据,包括:In one embodiment, as shown in FIG. 2, the acquisition of N pieces of packaging container shape image data of narcotics and narcotics through a preset image acquisition method includes:
步骤S201、根据所述预设图像采集方式设置图像采集条件,所述图像采集条件包括:光照条件和置地条件;Step S201, setting image acquisition conditions according to the preset image acquisition mode, the image acquisition conditions include: lighting conditions and ground conditions;
步骤S202、根据所述图像采集条件设定摄像头的拍摄角度和焦距参数;Step S202, setting the shooting angle and focal length parameters of the camera according to the image acquisition conditions;
步骤S203、检测毒麻药品的包装容器在预设排列序列中的排列情况;Step S203, detecting the arrangement of the packaging containers of narcotic drugs in the preset arrangement sequence;
步骤S204、根据所述排列情况判断是否符合图像采集需求,若是,通过预设图像采集方式控制摄像头以设定参数采集N张毒麻药品的包装容器外形图像数据。Step S204 , judging whether the image collection requirements are met according to the arrangement, and if so, control the camera through the preset image collection method to set parameters to collect N pieces of image data of the packaging containers of narcotics and narcotics.
在本实施例中,排列情况表示为毒麻药品的包装容器在摄像头设定的拍摄排列序列中的摆放端正情况。In this embodiment, the arrangement status represents the correct placement of the packaging containers of narcotics and narcotics in the shooting arrangement sequence set by the camera.
上述技术方案的有益效果为:通过设置图像采集条件可以更加清晰和完整地实现图像采集工作,提高了工作效率和稳定性,进一步地,通过设定摄像头的拍摄角度和焦距参数可以进一步地保证采集图像的清晰度,为后续模型训练奠定了高质量的训练样本,提高了模型在训练过程中的学习精度。The beneficial effects of the above technical solution are: by setting the image acquisition conditions, the image acquisition work can be realized more clearly and completely, and the work efficiency and stability are improved; further, by setting the shooting angle and focal length parameters of the camera, the acquisition can be further ensured The clarity of the image provides high-quality training samples for subsequent model training and improves the learning accuracy of the model during the training process.
在一个实施例中,所述所述设置毒麻药品的包装容器图像的识别模式,包括:In one embodiment, the setting of the recognition mode of the packaging container image of narcotic drugs includes:
获取毒麻药品包装容器的瓶颈参数、视觉参数以及容器内部溶液或粉剂的状态参数;Obtain the bottleneck parameters, visual parameters and state parameters of the solution or powder inside the container for narcotics and narcotics packaging containers;
根据所述视觉参数获取毒麻药品包装容器的标签图案识别参数和形状识别参数,根据所述容器内部溶液或粉剂的状态参数获取毒麻药品的空瓶识别参数,根据所述瓶颈参数获取毒麻药品的使用状态识别参数;Obtain the label pattern recognition parameters and shape recognition parameters of the narcotics packaging container according to the visual parameters; Drug use state identification parameters;
基于所有识别参数确定毒麻药品的包装容器的多种显示状态;Determining various display states of the packaging container of narcotic drugs based on all identification parameters;
构建每种显示状态对应的识别规则并生成该显示状态对应的识别模式。A recognition rule corresponding to each display state is constructed and a recognition pattern corresponding to the display state is generated.
在本实施例中,瓶颈参数表示为瓶颈处于完整或破裂时的状态参数;In this embodiment, the bottleneck parameter is expressed as a state parameter when the bottleneck is complete or broken;
在本实施例中,视觉参数表示为毒麻药品包装容器的形状视觉参数;In this embodiment, the visual parameter is expressed as the visual parameter of the shape of the drug packaging container;
在本实施例中,显示状态表示为毒麻药品的包装容器的承载药品显示状态和外观显示状态。In this embodiment, the display state is represented as a drug carrying display state and an appearance display state of the packaging container of narcotics and narcotics.
上述技术方案的有益效果为:通过确定毒麻药品包装容器的多个参数来确定其多个显示状态进而生成识别模式可以将毒麻药品包装的所有的显示形态考虑在内从而实现对实时样本无遗漏地识别,进一步地提高了识别效率和稳定性。The beneficial effect of the above technical solution is: by determining multiple parameters of the narcotic drug packaging container to determine its multiple display states and then generate a recognition pattern that can take all display forms of the narcotic drug packaging into consideration, so as to achieve no real-time sample analysis. Missed recognition further improves the recognition efficiency and stability.
在本实施例中,构建每种显示状态对应的识别规则并生成该显示状态对应的识别模式,包括:In this embodiment, a recognition rule corresponding to each display state is constructed and a recognition pattern corresponding to the display state is generated, including:
确定毒麻药品包装容器在每种显示状态下的视角属性;Determine the viewing angle attributes of the narcotics packaging container in each display state;
基于所述视角属性确定毒麻药品包装容器在每种显示状态下的描述因子;Determining the descriptive factor of the narcotics packaging container in each display state based on the viewing angle attribute;
通过所述描述因子构建毒麻药品包装容器在每种显示状态下的识别模型;Constructing a recognition model of the narcotics packaging container in each display state through the description factors;
根据识别模型获取毒麻药品包装容器在每种显示状态下的识别参数;According to the identification model, the identification parameters of the drug packaging container in each display state are obtained;
对所述识别参数进行排列组合生成M个识别策略,设置N个预设识别规则,其中M=N;Arranging and combining the identification parameters to generate M identification strategies, setting N preset identification rules, where M=N;
将所述预设识别规则和识别策略进行融合处理,获取N个识别策略规则;Fusing the preset recognition rules and recognition strategies to obtain N recognition strategy rules;
提取N个识别策略规则的规则参数和策略参数并根据二者构建每个识别策略规则的计算模型;Extracting rule parameters and policy parameters of N identification policy rules and constructing a calculation model for each identification policy rule based on the two;
利用卷积神经网络对毒麻药品包装容器在每种显示状态下的识别参数进行自适应学习处理,根据处理结果确定每个识别策略规则的计算模型对应的计算参数;The convolutional neural network is used to perform adaptive learning processing on the identification parameters of the drug packaging container in each display state, and determine the corresponding calculation parameters of the calculation model of each identification strategy rule according to the processing results;
根据每个识别策略规则的计算模型对应的计算参数和计算模型生成该识别策略规则的计算表达式;Generate a calculation expression for the identification policy rule according to the calculation parameters and the calculation model corresponding to the calculation model of each identification policy rule;
基于毒麻药品包装容器在每种显示状态下的识别参数执行每个识别策略规则的计算表达式,根据执行结果选择毒麻药品包装容器在每种显示状态下的最佳识别策略规则;Execute the calculation expression of each identification strategy rule based on the identification parameters of the narcotics packaging container in each display state, and select the best identification strategy rule for the narcotics packaging container in each display state according to the execution result;
确定在最佳识别策略规则下毒麻药品包装容器在每种显示状态的识别损失差,根据所述识别损失差创建识别字典;Determining the recognition loss difference of the drug packaging container in each display state under the optimal recognition strategy rule, and creating a recognition dictionary according to the recognition loss difference;
获取所述识别字典的常数矩阵、嵌入矩阵和标签矩阵;Obtain the constant matrix, embedding matrix and label matrix of the recognition dictionary;
根据所述常数矩阵、嵌入矩阵和标签矩阵设置毒麻药品包装容器在每种显示状态下对应的识别模式。According to the constant matrix, embedding matrix and label matrix, the corresponding recognition mode of the drug packaging container in each display state is set.
在本实施例中,视角属性表示为毒麻药品包装容器在每种显示状态下多视角显示属性因子;In this embodiment, the viewing angle attribute is expressed as a multi-viewing angle display attribute factor in each display state of the drug packaging container;
在本实施例中,描述因子表示为毒麻药品包装容器在每种显示状态下的外形描述情况;In this embodiment, the description factor is expressed as the description of the appearance of the narcotics packaging container in each display state;
在本实施例中,识别参数表示为毒麻药品包装容器在每种显示状态下的外形识别参数、颜色识别参数、完整度识别参数和状态识别参数;In this embodiment, the identification parameters are expressed as shape identification parameters, color identification parameters, completeness identification parameters and state identification parameters of the drug packaging container in each display state;
在本实施例中,识别损失差表示为在最佳识别策略规则下对毒麻药品包装容器在每种显示状态下的识别误差或者识别图像损失局域与全域的比例;In this embodiment, the recognition loss difference is expressed as the recognition error of the drug packaging container in each display state under the optimal recognition strategy rule or the ratio of the recognition image loss local area to the entire area;
在本实施例中,识别字典表示为对识别损失差进行识别补偿的网络字典。In this embodiment, the recognition dictionary is represented as a network dictionary that performs recognition compensation for recognition loss differences.
上述技术方案的有益效果为:通过构建毒麻药品包装容器在每种显示状态下的识别模型可以快速地获取到毒麻药品包装容器在每种显示状态下的识别参数从而根据其对不同策略规则的测试结果来选择出最佳的识别策略规则,使得筛选的规则更加客观和实用,进一步地,通过根据筛选识别策略规则的识别损失差来创建识别字典进而设置识别模式可以克服识别规则所来带的误差或者损失来对毒麻药品包装容器进行更加精确和稳定的识别工作,提高了稳定性的同时也保证了识别精度,提高了实用性。The beneficial effect of the above technical solution is: by constructing the identification model of the narcotics packaging container in each display state, the identification parameters of the narcotics packaging container in each display state can be quickly obtained, and according to its different strategy rules The test results to select the best recognition strategy rules, making the screening rules more objective and practical, further, by creating a recognition dictionary and then setting the recognition mode according to the recognition loss difference of the screening recognition strategy rules, it can overcome the problems caused by the recognition rules. The error or loss is used to carry out more accurate and stable identification work on the packaging containers of narcotics and narcotics, which improves the stability while ensuring the identification accuracy and improving the practicability.
在一个实施例中,在基于所述识别模式通过YOLOv5机器学习算法对所述N张毒麻药品的包装容器外形图像数据进行学习建模,获取识别模型之前,还包括:In one embodiment, before learning and modeling the shape image data of the packaging container of the N drugs and narcotics through the YOLOv5 machine learning algorithm based on the recognition pattern, and obtaining the recognition model, it also includes:
获取预设YOLOv4机器学习模型的模型参数;Obtain the model parameters of the preset YOLOv4 machine learning model;
在所述模型参数中筛选出模型输入端参数、基准网络参数、Neck网络参数和Head输出层参数;Screen out model input terminal parameters, benchmark network parameters, Neck network parameters and Head output layer parameters in the model parameters;
对所述模型输入端参数、基准网络参数、Neck网络参数和Head输出层参数进行优化;Optimizing the model input parameters, reference network parameters, Neck network parameters and Head output layer parameters;
根据优化后的YOLOv4机器学习模型获取YOLOv5机器学习算法。Obtain the YOLOv5 machine learning algorithm based on the optimized YOLOv4 machine learning model.
上述技术方案的有益效果为:通过对模型参数进行优化可以保证机器学习算法的识别精度和识别速度等性能获得极大地提成,进一步地提高了识别效率和实用性。The beneficial effect of the above-mentioned technical solution is: by optimizing the model parameters, it can ensure that the recognition accuracy and recognition speed of the machine learning algorithm can be greatly improved, and the recognition efficiency and practicability are further improved.
在一个实施例中,如图3所示,所述基于所述识别模式通过YOLOv5机器学习算法对所述N张毒麻药品的包装容器外形图像数据进行学习建模,获取识别模型,包括:In one embodiment, as shown in FIG. 3 , the N pieces of drug packaging container outline image data are learned and modeled based on the recognition pattern through the YOLOv5 machine learning algorithm, and the recognition model is obtained, including:
步骤S301、将N张毒麻药品的包装容器外形图像划分为M张训练图像和N-M张验证图像并分别生成数据训练集和数据验证集;Step S301. Divide the N images of the packaging containers of narcotics and anesthetics into M training images and N-M verification images, and generate a data training set and a data verification set respectively;
步骤S302、将M张训练图像按照每个训练组的预设数据承载数量划分为多个训练数据组,设置训练数据组的单次批量处理数据最大数量和超参数以及分辨率;Step S302, divide the M training images into multiple training data groups according to the preset data load quantity of each training group, and set the maximum number of single batch processing data, hyperparameters and resolution of the training data group;
步骤S303、将YOLOv5机器学习算法和识别模式写入到预设神经网络模型中,利用所述预设神经网络模型对多个训练数据组中的训练图像进行六次识别训练;Step S303, writing the YOLOv5 machine learning algorithm and the recognition pattern into the preset neural network model, and using the preset neural network model to perform six recognition trainings on the training images in the multiple training data sets;
步骤S304、对六次训练后的预设神经网络模型的输出数据进行误差分析,根据分析结果确定训练模型是否合格,若是,将其确认为识别模型。Step S304 , analyzing the error of the output data of the preset neural network model after six times of training, and determining whether the training model is qualified according to the analysis result, and if so, confirming it as the recognition model.
在本实施例中,超参数可以为不为零的正整数;In this embodiment, the hyperparameter can be a non-zero positive integer;
在本实施例中,六次识别训练是为了保证预设神经网络模型实现收敛的最佳训练次数。In this embodiment, the six identification trainings are to ensure the optimal training times for the preset neural network model to achieve convergence.
上述技术方案的有益效果为:通过生成数据训练集和数据验证集既可以对模型进行训练同时还可以对其进行验证,进一步地提高了实用性,进一步地,通过划分训练数组和图像数据的批量处理参数可以使得模型进行数据的有序训练,进一步地提高了稳定性。The beneficial effect of the above technical solution is: the model can be trained and verified at the same time by generating the data training set and the data verification set, which further improves the practicability; further, by dividing the training array and the batch of image data Processing parameters can enable the model to perform orderly training of data, further improving stability.
在一个实施例中,所述将所述识别模型加载到终端应用程序中对毒麻药品进行批量识别计数回收,包括:In one embodiment, the loading of the identification model into the terminal application program to perform batch identification, counting and recycling of narcotics includes:
将所述识别模型进行编码以获取编码结果,将所述编码结果写入到所述终端应用程序中以生成毒麻药品识别程序;Encoding the identification model to obtain an encoding result, and writing the encoding result into the terminal application program to generate a narcotics identification program;
采集待识别毒麻药品包装容器的目标图像,利用所述毒麻药品识别程序对目标图像进行识别以确定容器数量和容器种类以及容器使用状态;Collect the target image of the narcotics packaging container to be identified, and use the narcotics identification program to identify the target image to determine the number of containers, the type of the container, and the use status of the container;
根据容器数量和容器种类以及容器使用状态对毒麻药品包装容器进行批量归类回收处理;Classify and recycle the packaging containers of narcotic drugs in batches according to the number and type of containers and the state of use of the containers;
将毒麻药品包装容器的计数识别信息加入到备案系统与取药人和还药人的信息相匹配;Add the counting identification information of narcotics and narcotics packaging containers to the filing system to match the information of the person who takes the drug and the person who returns it;
若不匹配,生成信息不匹配提示通过预设信息平台告知用药医生和药品管理员。If it does not match, an information mismatch prompt is generated to inform the medication doctor and the drug administrator through the preset information platform.
在本实施例中,毒麻药品识别程序表示为可运行在计算机或者服务器终端的毒麻药品识别应用程序。In this embodiment, the narcotics identification program is represented as a narcotics identification application program that can run on a computer or a server terminal.
上述技术方案的有益效果为:可以通过电脑等终端对待识别玻璃容器进行智能识别分类和回收处理工作,提高了智能化和回收效率,节省了人力成本,进一步地提高了实用性,进一步地,通过将毒麻药品包装容器的计数识别信息加入到备案系统与取药人和还药人的信息相匹配可以记录每个毒麻药品的使用情况信息,实现对每个毒麻药品使用流程的精确监控,进一步地提高了实用性。The beneficial effects of the above-mentioned technical solution are as follows: intelligent identification, classification and recycling of glass containers to be identified can be carried out through terminals such as computers, which improves intelligence and recycling efficiency, saves labor costs, and further improves practicability. Further, through Adding the counting and identification information of the narcotics packaging container to the filing system and matching the information of the person taking and returning the narcotics can record the usage information of each narcotic drug and realize the precise monitoring of the use process of each narcotic drug , further improving the practicality.
在本实施例中,将毒麻药品包装容器的计数识别信息加入到备案系统,具体为:In this embodiment, the counting identification information of the narcotics packaging container is added to the filing system, specifically:
获取所述备案系统对应存储服务器的节点状态信息;Obtaining the node status information of the storage server corresponding to the filing system;
根据所述节点状态信息确定存储服务器中的空闲节点,调取每个空闲节点的剩余存储资源;determining idle nodes in the storage server according to the node state information, and calling the remaining storage resources of each idle node;
确定存储毒麻药品包装容器的计数识别信息所需要的内存值;Determining the memory value required to store count identification information for narcotics packaging containers;
根据所述每个空闲节点的剩余存储资源和存储毒麻药品包装容器的计数识别信息所需要的内存值计算出每个空闲节点的推荐度:Calculate the recommendation degree of each idle node according to the remaining storage resources of each idle node and the memory value required to store the count identification information of the drug packaging container:
其中,Fi表示为第i个空闲节点的推荐度,Di表示为第i个空闲节点的数据传输效率,T1i表示为第i个空闲节点的剩余存储资源,T2i表示为第i个空闲节点的总分配存储资源,α表示为节点的分配资源比例对数据传输效率的增益因子,log表示为对数,p′表示为存储毒麻药品包装容器的计数识别信息所需要的内存值,pi表示为第i个空闲节点的分配内存值,e表示为自然常数,取值为2.72,ai表示为第i个空闲节点的处理能力值,B表示为毒麻药品包装容器的计数识别信息对应的数据量,Bi表示为第i个空闲节点的单周期最大存储数据量,Di表示为第i个空闲节点的传输时延指数,Vi表示为第i个空间节点的当前网络带宽,V’表示为预设参考带宽阈值;Among them, F i represents the recommendation degree of the i-th idle node, D i represents the data transmission efficiency of the i-th idle node, T 1i represents the remaining storage resources of the i-th idle node, and T 2i represents the The total allocated storage resources of idle nodes, α is expressed as the gain factor of the allocated resource ratio of the node to the data transmission efficiency, log is expressed as a logarithm, and p ' is expressed as the memory value required to store the counting identification information of the drug packaging container, p i represents the allocated memory value of the i-th idle node, e represents a natural constant with a value of 2.72, a i represents the processing capability value of the i-th idle node, and B represents the count identification of the drug packaging container The amount of data corresponding to the information, B i represents the maximum storage data volume of the i-th idle node in a single cycle, D i represents the transmission delay index of the i-th idle node, V i represents the current network of the i-th space node Bandwidth, V ' is expressed as a preset reference bandwidth threshold;
选择出推荐度最大的目标空闲节点作为数据传输节点;Select the target idle node with the highest recommendation degree as the data transmission node;
将毒麻药品包装容器的计数识别信息通过所述目标空闲节点备案系统对应存储服务器中。The counting identification information of the narcotics and narcotics packaging container is correspondingly stored in the storage server through the target idle node filing system.
上述技术方案的有益效果为:通过根据每个空闲节点的状态参量和工作参数来计算出其推荐度可以根据每个空闲节点对于毒麻药品包装容器的计数识别信息的消化情况和传输效率以及传输时延和和传输能力等多个维度来综合地评估出每个空闲节点的适配度从而选择出推荐度最高的空闲节点进行数据传输,既保证了数据传输效率同时还保证了数据传输的稳定性和内存,提高了实用性。The beneficial effect of the above technical solution is: by calculating the recommendation degree of each idle node according to the state parameters and working parameters, it can be based on the digestion and transmission efficiency of each idle node for the counting identification information of the narcotics packaging container and the transmission efficiency. Multiple dimensions such as time delay and transmission capacity are used to comprehensively evaluate the fitness of each idle node, so as to select the idle node with the highest recommendation for data transmission, which not only ensures the efficiency of data transmission, but also ensures the stability of data transmission performance and memory, improving usability.
在一个实施例中,所述对六次训练后的预设神经网络模型的输出数据进行误差分析,根据分析结果确定训练模型是否合格,若是,将其确认为识别模型,包括:In one embodiment, the error analysis is performed on the output data of the preset neural network model after six trainings, and whether the training model is determined to be qualified according to the analysis results, if so, is confirmed as a recognition model, including:
通过数据验证集中的验证图像输入到所述训练后的预设神经网络模型进行识别,获取识别结果;Inputting the verification image in the data verification set to the trained preset neural network model for recognition, and obtaining the recognition result;
根据所述识别结果确定训练后的预设神经网络模型的识别错误概率,根据所述识别错误概率分析出训练后的预设神经网络模型的识别误差;Determine the recognition error probability of the trained preset neural network model according to the recognition result, and analyze the recognition error of the trained preset neural network model according to the recognition error probability;
确认所述识别误差是否在预设误差阈值范围内,若是,确定训练模型合格,若否,确定所述训练模型不合格;Confirm whether the recognition error is within the preset error threshold range, if yes, determine that the training model is qualified, if not, determine that the training model is unqualified;
当确认训练模型合格后,将其确认为所述识别模型。When it is confirmed that the training model is qualified, it is confirmed as the recognition model.
在本实施例中,识别错误概率表示为训练后的预设神经网络模型识别标签错误和识别外形错误以及识别瓶内药品状态错误的综合概率;In this embodiment, the recognition error probability is expressed as the comprehensive probability of the trained preset neural network model identifying label errors, identifying shape errors, and identifying drug state errors in the bottle;
在本实施例中,识别误差表示为训练后的预设神经网络模型对于毒麻药品的包装容器的识别失败数量与识别成功数量的比值。In this embodiment, the recognition error is expressed as the ratio of the number of failed recognitions to the number of successful recognitions of the packaging containers of narcotics and narcotics by the preset neural network model after training.
上述技术方案的有益效果为:通过根据训练模型的识别错误概率来对训练模型的识别误差进行分析可以快速地确定训练模型的识别效果进而选择是否对其进行继续训练,保证了训练模型的精度和训练效果,进一步地提高了稳定性和实用性。The beneficial effect of the above technical solution is: by analyzing the recognition error of the training model according to the recognition error probability of the training model, the recognition effect of the training model can be quickly determined, and then it can be selected whether to continue training, which ensures the accuracy and accuracy of the training model. Training effect, further improving stability and practicality.
在一个实施例中,所述方法还包括:In one embodiment, the method also includes:
获取所述识别模型的模型参数,根据所述模型参数获取识别模型的损失函数均值、检测loss均值、分类loss均值、精度值和召回率阈值;Obtaining the model parameters of the recognition model, and obtaining the mean value of the loss function, the mean value of the detection loss, the mean value of the classification loss, the precision value and the threshold value of the recall rate of the recognition model according to the model parameters;
根据所述损失函数均值和检测loss均值确定识别模型的检测精度;Determine the detection accuracy of the recognition model according to the loss function mean value and the detection loss mean value;
基于所述分类loss均值确定识别模型的分类精度;determining the classification accuracy of the recognition model based on the classification loss mean value;
根据所述精度值和召回率阈值确定识别模型的识别精度,基于所述检测精度、分类精度和识别精度确定识别模型是否需要继续训练。The recognition accuracy of the recognition model is determined according to the precision value and the recall rate threshold, and whether the recognition model needs to continue training is determined based on the detection precision, classification precision and recognition precision.
上述技术方案的有益效果为:通过根据模型参数确定识别模型在各个功能维度的精度情况从而可以进一步地确定模型的识别效果,进一步地保证了模型的精度和识别准确率。The beneficial effects of the above technical solution are: by determining the precision of the recognition model in each functional dimension according to the model parameters, the recognition effect of the model can be further determined, and the precision and recognition accuracy of the model can be further ensured.
在一个实施例中,所述根据容器数量和容器种类以及容器使用状态对毒麻药品包装容器进行批量归类回收处理,包括:In one embodiment, the batch sorting and recycling of the narcotics and narcotics packaging containers according to the number of containers, the types of containers and the state of use of the containers includes:
根据所述容器种类将待识别毒麻药品包装容器进行划分,获取第一划分结果;Divide the packaging containers of narcotics and narcotics to be identified according to the type of the container, and obtain the first division result;
根据所述容器使用状态对所述第一划分结果中每种毒麻药品包装容器进行使用完毕空瓶和未使用完毕半瓶以及未使用全瓶进行划分,获取第二划分结果;Carry out used empty bottles, unused half bottles, and unused full bottles for each of the poisonous and narcotic drug packaging containers in the first classification result according to the use state of the container, and obtain the second classification result;
根据所述第一划分结果和第二划分结果选择适配的回收模式对毒麻药品包装容器进行批量回收处理。According to the first classification result and the second classification result, an adapted recovery mode is selected to perform batch recovery processing on the packaging containers of narcotics and narcotics.
上述技术方案的有益效果为:通过根据对毒麻药品包装容器进行两次划分可以全面地确定毒麻药品包装容器的所有状态进而选择出每个毒麻药品包装容器的最佳回收模式,进一步地保证了回收效率。The beneficial effect of the above-mentioned technical scheme is: by dividing the narcotics and narcotics packaging containers twice, all the states of the narcotics and narcotics packaging containers can be determined comprehensively, and then the best recycling mode for each narcotics and narcotics packaging container can be selected, further The recovery efficiency is guaranteed.
本实施例还公开了一种药品包装和容器外形建模识别和计数系统,如图4所示,该系统包括:This embodiment also discloses a drug packaging and container shape modeling recognition and counting system, as shown in Figure 4, the system includes:
采集模块401,用于通过预设图像采集方式采集N张毒麻药品的包装容器外形图像数据;The
设置模块402,用于设置毒麻药品的包装容器图像的识别模式;The
建模模块403,用于基于所述识别模式通过YOLOv5机器学习算法对所述N张毒麻药品的包装容器外形图像数据进行学习建模,获取识别模型;The
加载模块404,用于将所述识别模型加载到终端应用程序中对毒麻药品进行批量识别计数回收。The
上述技术方案的工作原理及有益效果在方法权利要求中已经说明,此处不再赘述。The working principles and beneficial effects of the above technical solutions have been described in the method claims and will not be repeated here.
本领域技术用户员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to users skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211466269.XA CN115861688B (en) | 2022-11-22 | 2022-11-22 | A pharmaceutical packaging and container shape modeling recognition and counting method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211466269.XA CN115861688B (en) | 2022-11-22 | 2022-11-22 | A pharmaceutical packaging and container shape modeling recognition and counting method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115861688A true CN115861688A (en) | 2023-03-28 |
CN115861688B CN115861688B (en) | 2023-08-11 |
Family
ID=85664932
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211466269.XA Active CN115861688B (en) | 2022-11-22 | 2022-11-22 | A pharmaceutical packaging and container shape modeling recognition and counting method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115861688B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804227A (en) * | 2018-05-23 | 2018-11-13 | 大连理工大学 | The method of the unloading of computation-intensive task and best resource configuration based on mobile cloud computing |
CN110533078A (en) * | 2019-08-02 | 2019-12-03 | 西安电子科技大学 | Multi-view recognition method based on dictionary pair |
CN111931774A (en) * | 2020-09-27 | 2020-11-13 | 耀方信息技术(上海)有限公司 | Method and system for warehousing medicine data |
CN113538417A (en) * | 2021-08-24 | 2021-10-22 | 安徽顺鼎阿泰克科技有限公司 | Transparent container defect detection method and device based on multi-angle and target detection |
CN114388106A (en) * | 2022-01-12 | 2022-04-22 | 首都医科大学宣武医院 | Medicine consumable management information checking and analyzing system and equipment based on face recognition |
-
2022
- 2022-11-22 CN CN202211466269.XA patent/CN115861688B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804227A (en) * | 2018-05-23 | 2018-11-13 | 大连理工大学 | The method of the unloading of computation-intensive task and best resource configuration based on mobile cloud computing |
CN110533078A (en) * | 2019-08-02 | 2019-12-03 | 西安电子科技大学 | Multi-view recognition method based on dictionary pair |
CN111931774A (en) * | 2020-09-27 | 2020-11-13 | 耀方信息技术(上海)有限公司 | Method and system for warehousing medicine data |
CN113538417A (en) * | 2021-08-24 | 2021-10-22 | 安徽顺鼎阿泰克科技有限公司 | Transparent container defect detection method and device based on multi-angle and target detection |
CN114388106A (en) * | 2022-01-12 | 2022-04-22 | 首都医科大学宣武医院 | Medicine consumable management information checking and analyzing system and equipment based on face recognition |
Non-Patent Citations (1)
Title |
---|
JIAO PENG ET AL.: "Towards Toxic and Narcotic Medication Detection with Rotated Object Detector", ARXIV:2110.09777V1 [CS.CV], pages 1 - 15 * |
Also Published As
Publication number | Publication date |
---|---|
CN115861688B (en) | 2023-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11816165B2 (en) | Identification of fields in documents with neural networks without templates | |
EP3985578A1 (en) | Method and system for automatically training machine learning model | |
US11593458B2 (en) | System for time-efficient assignment of data to ontological classes | |
West et al. | Knowledge base completion via search-based question answering | |
WO2020000688A1 (en) | Financial risk verification processing method and apparatus, computer device, and storage medium | |
US20180341875A1 (en) | Systems and methods for predictive document coding using continuous active machine learning | |
CA2773198A1 (en) | Displaying relationships between electronically stored information to provide classification suggestions via injection | |
CN115577114A (en) | Event detection method and device based on time sequence knowledge graph | |
CN110472082A (en) | Data processing method, device, storage medium and electronic equipment | |
CN110502664A (en) | Video tab indexes base establishing method, video tab generation method and device | |
CN107292097A (en) | The feature selection approach of feature based group and traditional Chinese medical science primary symptom system of selection | |
CN109992676B (en) | Cross-media resource retrieval method and retrieval system | |
CN110458600A (en) | Portrait model training method, device, computer equipment and storage medium | |
CN111552796A (en) | Volume assembling method, electronic device and computer readable medium | |
Latona et al. | The ai review lottery: Widespread ai-assisted peer reviews boost paper scores and acceptance rates | |
CN114219507A (en) | Qualification review methods, devices, electronic equipment and storage media of traditional Chinese medicine suppliers | |
CN110310012A (en) | Data analysing method, device, equipment and computer readable storage medium | |
CN112445897A (en) | Method, system, device and storage medium for large-scale classification and labeling of text data | |
CN116227624A (en) | Federal knowledge distillation method and system oriented to heterogeneous model | |
CN116401343A (en) | A data compliance analysis method | |
CN115861688B (en) | A pharmaceutical packaging and container shape modeling recognition and counting method and system | |
CN116978087A (en) | Model updating method, device, equipment, storage medium and program product | |
CN107871055A (en) | A kind of data analysing method and device | |
WO2024098282A1 (en) | Geometric problem-solving method and apparatus, and device and storage medium | |
CN116052762A (en) | Method and server for matching drug molecules and target proteins |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |