CN114821025A - A method and system for meter recognition based on deep learning - Google Patents
A method and system for meter recognition based on deep learning Download PDFInfo
- Publication number
- CN114821025A CN114821025A CN202210261718.0A CN202210261718A CN114821025A CN 114821025 A CN114821025 A CN 114821025A CN 202210261718 A CN202210261718 A CN 202210261718A CN 114821025 A CN114821025 A CN 114821025A
- Authority
- CN
- China
- Prior art keywords
- module
- meter
- model
- image analysis
- signal
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/14—Image acquisition
- G06V30/148—Segmentation of character regions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/22—Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/77—Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
- G06V10/774—Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computing Systems (AREA)
- Databases & Information Systems (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域technical field
本发明涉及图像识别技术领域,具体是一种基于深度学习的表计识别方法和系统。The invention relates to the technical field of image recognition, in particular to a method and system for meter recognition based on deep learning.
背景技术Background technique
在电网运维巡检中,由于指针式仪表具有抗电磁干扰能力强、精度高、价格低等特点,在相当长的时间内依然是工业生产的主要测量仪表;由于指针式仪表无法输出数字信号,目前表计的读数查看都是由人工进行查看,需要操作者一直或经常呆在变电站内,增加了操作者工作量,无法达到无人巡视的效果;而且安装在高温高压等环境的仪表不便观察;In the power grid operation and maintenance inspection, due to its strong anti-electromagnetic interference ability, high precision and low price, the pointer meter is still the main measuring instrument for industrial production for a long time; because the pointer meter cannot output digital signals , At present, the reading of the meter is checked manually, which requires the operator to stay in the substation all the time or often, which increases the operator's workload and cannot achieve the effect of unmanned inspection; and it is inconvenient to install meters in high temperature and high pressure environments. Observed;
随着机器人技术的快速发展,巡检机器人可代替人工,通过摄像机或红外热像仪抓取表计读数图像,最终对获取的图片进行图像处理;但是图像识别过程中常常会受到外界环境影响,对识别精度产生较大的影响;基于以上不足,本发明提出一种基于深度学习的表计识别方法和系统。With the rapid development of robotics technology, inspection robots can replace manual labor, capture meter reading images through cameras or infrared thermal imagers, and finally perform image processing on the acquired images; however, the process of image recognition is often affected by the external environment. It has a great impact on the recognition accuracy; based on the above shortcomings, the present invention proposes a meter recognition method and system based on deep learning.
发明内容SUMMARY OF THE INVENTION
本发明旨在至少解决现有技术中存在的技术问题之一。为此,本发明提出一种基于深度学习的表计识别方法和系统。The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a method and system for meter identification based on deep learning.
为实现上述目的,根据本发明的第一方面的实施例提出一种基于深度学习的表计识别系统,包括图像采集模块、模型构建模块、信息记录模块、参数补偿模块以及信号验证模块;In order to achieve the above object, according to the embodiment of the first aspect of the present invention, a deep learning-based meter identification system is proposed, including an image acquisition module, a model construction module, an information recording module, a parameter compensation module, and a signal verification module;
所述图像采集模块用于采集表计图像,并将采集的表计图像传输至图像分析模块进行学习和识别;所述图像分析模块与模型构建模块相连接,用于获取模型构建模块构建的对图像进行训练和识别的yolov3检测模型;The image acquisition module is used to collect meter images, and transmit the collected meter images to the image analysis module for learning and identification; the image analysis module is connected to the model building module, and is used to obtain the pair of images constructed by the model building module. yolov3 detection model for image training and recognition;
所述图像分析模块用于采用yolov3检测模型对接收到的表计图像进行数字目标识别得到数字识别结果,最终得到表计读数;Described image analysis module is used for adopting the yolov3 detection model to carry out digital target recognition to the received meter image to obtain the digital recognition result, and finally obtain the meter reading;
所述信息记录模块用于记录图像分析模块的识别记录并将识别记录传输到信息整理模块;所述信息整理模块用于对识别记录进行整理,构建参数检测训练样本,训练基于机器学习方法,得到参数补偿模型;所述参数补偿模块接收到参数补偿模型后对yolov3检测模型进行修正;The information recording module is used for recording the identification records of the image analysis module and transmitting the identification records to the information sorting module; the information sorting module is used for sorting the identification records, constructing a training sample for parameter detection, and the training is based on a machine learning method to obtain A parameter compensation model; the parameter compensation module modifies the yolov3 detection model after receiving the parameter compensation model;
所述信号验证模块用于实时验证图像分析模块的通信状态,计算得到干扰系数Cy;若Cy≥干扰阈值,则判定信号干扰严重,通信状态异常,生成通信预警指令,以提醒管理人员尽快处理。The signal verification module is used to verify the communication status of the image analysis module in real time, and calculate the interference coefficient Cy; if Cy ≥ the interference threshold, it is determined that the signal interference is serious and the communication status is abnormal, and a communication warning command is generated to remind the management personnel to deal with it as soon as possible.
进一步地,其中,yolov3检测模型的构建过程如下:Further, the construction process of the yolov3 detection model is as follows:
采集表计图像,构建训练所需的数据集;具体表现为:采集n张不同拍摄角度不同光照条件下的表计图片,对表计图片打上标签后,获得后续训练yolov3模型所需数据集;并按照设定比例分为训练集、测试集和校验集;设定比例包括2:1:1、3:1:1和4:3:1;Collect meter images to construct the data set required for training; the specific performance is as follows: collect n meter images at different shooting angles and under different lighting conditions, label the meter images, and obtain the data set required for subsequent training of the yolov3 model; It is divided into training set, test set and verification set according to the set ratio; the set ratio includes 2:1:1, 3:1:1 and 4:3:1;
构建融合模型:融合模型为支持向量机、深度卷积神经网络和RBF神经网络中的至少两种结合融合方式构建的模型,融合方式包括线性加权融合法、交叉融合法、瀑布融合法、特征融合法和预测融合法;Construct a fusion model: The fusion model is a model constructed by at least two fusion methods among support vector machines, deep convolutional neural networks and RBF neural networks. The fusion methods include linear weighted fusion method, cross fusion method, waterfall fusion method, and feature fusion. method and prediction fusion method;
将训练集、测试集和校验集经过数据归一化之后对融合模型进行训练、测试和校验,将训练完成的融合模型标记为yolov3检测模型。After the training set, test set and verification set are normalized, the fusion model is trained, tested and verified, and the trained fusion model is marked as the yolov3 detection model.
进一步地,所述参数补偿模块的具体修正步骤为:Further, the specific correction steps of the parameter compensation module are:
SS1:获取当前时刻图像分析模块的识别记录,将当前识别得到的表计读数、实际表计读数以及对应的各项环境参数值输入至参数补偿模型,得到属性参数补偿系数;SS1: Obtain the identification record of the image analysis module at the current moment, input the currently identified meter reading, actual meter reading and corresponding environmental parameter values into the parameter compensation model to obtain the attribute parameter compensation coefficient;
SS2:根据属性参数补偿系数对yolov3检测模型进行修正。SS2: Modify the yolov3 detection model according to the attribute parameter compensation coefficient.
进一步地,所述信号验证模块的具体验证步骤为:Further, the specific verification steps of the signal verification module are:
所述信号验证模块按照预设验证周期发送验证配置消息至图像分析模块的FPGA主控,其中验证配置消息中包括第一信号质量门限;The signal verification module sends a verification configuration message to the FPGA main control of the image analysis module according to a preset verification period, wherein the verification configuration message includes a first signal quality threshold;
响应于接收到验证配置消息,由FPGA主控发送第二同步信号至信号验证模块;由信号验证模块确定第二同步信号的信号质量,并与第一信号质量门限进行对比,得到对应的质量差值Z1;设定响应时长为XT;In response to receiving the verification configuration message, the FPGA master sends the second synchronization signal to the signal verification module; the signal verification module determines the signal quality of the second synchronization signal, and compares it with the first signal quality threshold to obtain the corresponding poor quality Value Z1; set the response time to XT;
利用公式SH=Z1×a1+XT×a2计算得到信号损耗指数SH,其中a1、a2均为系数因子;根据信号损耗指数SH的变化趋势对干扰系数Cy进行评估。The signal loss index SH is calculated by using the formula SH=Z1×a1+XT×a2, where a1 and a2 are both coefficient factors; the interference coefficient Cy is evaluated according to the change trend of the signal loss index SH.
进一步地,干扰系数Cy的具体评估过程如下:Further, the specific evaluation process of the interference coefficient Cy is as follows:
建立信号损耗指数SH随时间变化的曲线图,将信号损耗指数SH与损耗阈值相比较;若SH≥损耗阈值,则在对应的曲线图中截取对应的曲线段并标注为黄色,记为干扰曲线段;Establish a curve graph of the signal loss index SH versus time, and compare the signal loss index SH with the loss threshold; if SH ≥ the loss threshold, intercept the corresponding curve segment in the corresponding curve and mark it as yellow, and record it as the interference curve part;
在预设时间段内,统计干扰曲线段的数量为L1,将所有的干扰曲线段对时间进行积分得到干扰参考能量L2;利用Cy=L1×a3+L2×a4计算得到干扰系数Cy,其中a3、a4均为系数因子。In the preset time period, the number of statistical interference curve segments is L1, and all interference curve segments are integrated with time to obtain the interference reference energy L2; the interference coefficient Cy is calculated by using Cy=L1×a3+L2×a4, where a3 , a4 are coefficient factors.
进一步地,所述识别记录包括图像分析模块每次识别得到的表计读数、实际表计读数以及对应的各项环境参数值;所述各项环境参数值包括温度、湿度、风压、风速以及干扰信号。Further, the identification record includes the meter reading, the actual meter reading and the corresponding environmental parameter values obtained by the image analysis module each time; the environmental parameter values include temperature, humidity, wind pressure, wind speed and interfere with the signal.
进一步地,所述图像分析模块在探测到通信预警指令后,进入主动待机模式,即不再以异常通信的FPGA主控来识别表计图像;待信号验证模块判断通信状态正常后,再继续二者之间的通信。Further, after the image analysis module detects the communication warning command, it enters the active standby mode, that is, the FPGA main control with abnormal communication is no longer used to identify the meter image; after the signal verification module judges that the communication state is normal, continue to the second step. communication between them.
进一步地,一种基于深度学习的表计识别方法,包括如下步骤:Further, a method for meter identification based on deep learning, comprising the following steps:
步骤一:通过模型构建模块构建能对图像进行训练和识别的yolov3检测模型,并将构建好的yolov3检测模型传输至图像分析模块;Step 1: Build a yolov3 detection model that can train and identify images through the model building module, and transfer the constructed yolov3 detection model to the image analysis module;
步骤二:通过图像分析模块采用yolov3检测模型对图像采集模块采集的表计图像进行数字目标识别得到数字识别结果,最终得到表计读数;Step 2: use the yolov3 detection model to perform digital target recognition on the meter image collected by the image acquisition module through the image analysis module to obtain a digital recognition result, and finally obtain the meter reading;
步骤三:通过信息记录模块记录图像分析模块的识别记录,调用信息整理模块对识别记录进行整理,构建参数检测训练样本;训练基于机器学习方法,得到参数补偿模型;Step 3: record the identification records of the image analysis module through the information recording module, call the information sorting module to sort the identification records, and construct a training sample for parameter detection; the training is based on a machine learning method to obtain a parameter compensation model;
步骤四:通过参数补偿模块将参数补偿模型反馈至模型构建模块,以对yolov3检测模型进行修正;Step 4: The parameter compensation model is fed back to the model building module through the parameter compensation module to correct the yolov3 detection model;
步骤五:通过信号验证模块实时验证图像分析模块的通信状态,计算得到干扰系数Cy;若Cy≥干扰阈值,则判定信号干扰严重,通信状态异常,生成通信预警指令,以提醒管理人员尽快处理;Step 5: Verify the communication status of the image analysis module in real time through the signal verification module, and calculate the interference coefficient Cy; if Cy ≥ the interference threshold, it is determined that the signal interference is serious and the communication status is abnormal, and a communication warning command is generated to remind the management personnel to deal with it as soon as possible;
步骤六:图像分析模块在探测到通信预警指令后,进入主动待机模式,待信号验证模块判断通信状态正常后,再继续二者之间的通信。Step 6: After the image analysis module detects the communication warning command, it enters the active standby mode, and after the signal verification module judges that the communication state is normal, the communication between the two is continued.
与现有技术相比,本发明的有益效果是:Compared with the prior art, the beneficial effects of the present invention are:
1、本发明中图像采集模块中的摄像球能够在壳体内进行转动,采集不同拍摄角度的表计图像,为后续图像识别提供坚实的数据支撑,图像分析模块采用yolov3检测模型对采集的表计图像进行分析并识别出表计的读数,达到无人巡视的目的,有效提高识别效率;1. In the present invention, the camera ball in the image acquisition module can be rotated in the housing to collect meter images from different shooting angles, providing solid data support for subsequent image recognition. The image analysis module adopts the yolov3 detection model to collect meter images. The image is analyzed and the reading of the meter is identified, so as to achieve the purpose of unmanned inspection and effectively improve the identification efficiency;
2、本发明中信息记录模块用于记录图像分析模块的识别记录;信息整理模块用于对识别记录进行整理,构建参数检测训练样本,训练基于机器学习方法,得到参数补偿模型;参数补偿模块接收到参数补偿模型后对yolov3检测模型进行修正,使得yolov3检测模型持续得到修正和完善,识别的正确率不断提高,整个过程都是自动进行的,从而使得工作可以广泛开展,工作的连续性和有效性得到保障;2. In the present invention, the information recording module is used for recording the identification records of the image analysis module; the information sorting module is used for sorting the identification records, constructing a training sample for parameter detection, and the training is based on a machine learning method to obtain a parameter compensation model; the parameter compensation module receives After the parameter compensation model is reached, the yolov3 detection model is revised, so that the yolov3 detection model is continuously revised and improved, and the accuracy of recognition is continuously improved. Sex is guaranteed;
3、本发明中信号验证模块用于实时验证图像分析模块的通信状态,首先按照预设验证周期发送验证配置消息至图像分析模块的FPGA主控,结合对应的质量差值Z1和响应时长XT计算得到信号损耗指数SH;根据信号损耗指数SH的变化趋势计算得到干扰系数Cy,若Cy≥干扰阈值,则判定信号干扰严重,通信状态异常,生成通信预警指令,以提示管理人员尽快处理;有效减少干扰信号的影响,从而提高图像分析模块的识别效率和正确率。3. The signal verification module in the present invention is used to verify the communication status of the image analysis module in real time. First, a verification configuration message is sent to the FPGA main control of the image analysis module according to the preset verification period, and the corresponding quality difference value Z1 and the response time XT are calculated. Obtain the signal loss index SH; calculate the interference coefficient Cy according to the change trend of the signal loss index SH. If Cy ≥ the interference threshold, it is judged that the signal interference is serious and the communication state is abnormal, and a communication warning command is generated to prompt the management personnel to deal with it as soon as possible; The influence of the interference signal, thereby improving the recognition efficiency and accuracy of the image analysis module.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为本发明一种基于深度学习的表计识别系统的系统框图。FIG. 1 is a system block diagram of a deep learning-based meter identification system of the present invention.
图2为本发明一种基于深度学习的表计识别方法的流程图。FIG. 2 is a flowchart of a deep learning-based meter identification method of the present invention.
具体实施方式Detailed ways
下面将结合实施例对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
如图1至图2所示,一种基于深度学习的表计识别系统,包括图像采集模块、图像分析模块、模型构建模块、控制器、显示模块、信息记录模块、信息整理模块、参数补偿模块、信号验证模块以及报警模块;As shown in Figures 1 to 2, a deep learning-based meter recognition system includes an image acquisition module, an image analysis module, a model building module, a controller, a display module, an information recording module, an information sorting module, and a parameter compensation module , signal verification module and alarm module;
图像采集模块用于采集表计图像,并将采集的表计图像传输至图像分析模块进行学习和识别;The image acquisition module is used to collect meter images, and transmit the collected meter images to the image analysis module for learning and identification;
图像分析模块与模型构建模块相连接,模型构建模块用于构建能对图像进行训练和识别的yolov3检测模型,该yolov3检测模型用于对采集的表计图像进行分析并识别出表计的读数;该yolov3检测模型的构建过程如下:The image analysis module is connected with the model building module, and the model building module is used to build a yolov3 detection model that can train and identify images. The yolov3 detection model is used to analyze the collected meter images and identify the meter readings; The construction process of the yolov3 detection model is as follows:
采集表计图像,构建训练所需的数据集;具体表现为:采集n张不同拍摄角度不同光照条件下的表计图片,对表计图片打上标签后,获得后续训练yolov3模型所需数据集;并按照设定比例分为训练集、测试集和校验集;设定比例包括2:1:1、3:1:1和4:3:1;Collect meter images to construct the data set required for training; the specific performance is as follows: collect n meter images at different shooting angles and under different lighting conditions, label the meter images, and obtain the data set required for subsequent training of the yolov3 model; It is divided into training set, test set and verification set according to the set ratio; the set ratio includes 2:1:1, 3:1:1 and 4:3:1;
构建融合模型:融合模型为支持向量机、深度卷积神经网络和RBF神经网络中的至少两种结合融合方式构建的模型,融合方式包括线性加权融合法、交叉融合法、瀑布融合法、特征融合法和预测融合法;Construct a fusion model: The fusion model is a model constructed by at least two fusion methods among support vector machines, deep convolutional neural networks and RBF neural networks. The fusion methods include linear weighted fusion method, cross fusion method, waterfall fusion method, and feature fusion. method and prediction fusion method;
将训练集、测试集和校验集经过数据归一化之后对融合模型进行训练、测试和校验,将训练完成的融合模型标记为yolov3检测模型;After the training set, test set and verification set are normalized, the fusion model is trained, tested and verified, and the trained fusion model is marked as the yolov3 detection model;
其中yolov3检测模型所使用的特征提取网络darknet-53大量使用3*3与1*1卷积层依次连接的形式,有53个卷积层;Among them, the feature extraction network darknet-53 used by the yolov3 detection model uses a large number of 3*3 and 1*1 convolutional layers connected in turn, and there are 53 convolutional layers;
图像分析模块用于采用yolov3检测模型对接收到的表计图像进行数字目标识别得到数字识别结果,最终得到表计读数;图像分析模块用于将最终得到的表计读数经控制器传输至显示模块实时显示;The image analysis module is used to use the yolov3 detection model to perform digital target recognition on the received meter image to obtain the digital recognition result, and finally obtain the meter reading; the image analysis module is used to transmit the final meter reading to the display module through the controller real-time display;
其中图像采集模块包括壳体和活动设置在壳体内的摄像球,在摄像球上设置有摄像口,在摄像口上设置有摄像头;The image acquisition module includes a housing and a camera ball movably arranged in the housing, a camera port is provided on the camera ball, and a camera is provided on the camera port;
本方案中摄像球能够在壳体内进行转动,使用者可以通过调节摄像球来调节摄像头的摄像角度,使得可以更好的采集表计读数图像,同时通过图像来识别变电站内表计的读数,达到无人巡视的目的;In this solution, the camera ball can be rotated in the shell, and the user can adjust the camera angle by adjusting the camera ball, so that the meter reading image can be better collected, and the meter reading in the substation can be identified through the image, so as to achieve The purpose of unmanned inspection;
信息记录模块与显示模块相连接,用于记录图像分析模块的识别记录并将识别记录传输到信息整理模块,识别记录包括图像分析模块每次识别得到的表计读数、实际表计读数以及对应的各项环境参数值;各项环境参数值包括温度、湿度、风压、风速、干扰信号等;The information recording module is connected with the display module, and is used to record the identification record of the image analysis module and transmit the identification record to the information sorting module. Various environmental parameter values; various environmental parameter values include temperature, humidity, wind pressure, wind speed, interference signals, etc.;
信息整理模块接收识别记录并对识别记录进行整理,构建参数检测训练样本,训练基于机器学习方法,得到参数补偿模型并将参数补偿模型传输到参数补偿模块,参数补偿模块接收到参数补偿模型后对yolov3检测模型进行修正,具体补偿步骤为:The information sorting module receives the identification records and sorts the identification records, constructs a training sample for parameter detection, and the training is based on the machine learning method to obtain a parameter compensation model and transmits the parameter compensation model to the parameter compensation module. The yolov3 detection model is corrected, and the specific compensation steps are:
SS1:获取当前时刻图像分析模块的识别记录,将当前识别得到的表计读数、实际表计读数以及对应的各项环境参数值输入至参数补偿模型,得到属性参数补偿系数;SS1: Obtain the identification record of the image analysis module at the current moment, input the currently identified meter reading, actual meter reading and corresponding environmental parameter values into the parameter compensation model to obtain the attribute parameter compensation coefficient;
SS2:根据属性参数补偿系数对yolov3检测模型进行修正,使得yolov3检测模型持续得到修正和完善,提高识别的正确率;SS2: The yolov3 detection model is modified according to the attribute parameter compensation coefficient, so that the yolov3 detection model is continuously revised and improved, and the accuracy of recognition is improved;
本发明将图像分析模块各个环节的结果作为反馈因子,反过来进一步验证前面训练、识别过程中的yolov3检测模型,补偿属性参数,使得yolov3检测模型持续得到修正和完善,识别的正确率不断提高,整个过程都是自动进行的,从而使得工作可以广泛开展,工作的连续性和有效性得到保障;The invention uses the results of each link of the image analysis module as a feedback factor, and in turn further verifies the yolov3 detection model in the previous training and identification process, and compensates the attribute parameters, so that the yolov3 detection model is continuously revised and improved, and the correct rate of recognition is continuously improved. The whole process is automatic, so that the work can be widely carried out, and the continuity and effectiveness of the work are guaranteed;
在本实施例中,为了减少干扰信号的影响,保证图像识别的准确度;信号验证模块用于实时验证图像分析模块的通信状态,具体验证步骤为:In this embodiment, in order to reduce the influence of interference signals and ensure the accuracy of image recognition; the signal verification module is used to verify the communication state of the image analysis module in real time, and the specific verification steps are:
信号验证模块按照预设验证周期发送验证配置消息至图像分析模块的FPGA主控,其中验证配置消息中包括第一信号质量门限;响应于接收到由信号验证模块发送的验证配置消息,由FPGA主控发送第二同步信号至信号验证模块;The signal verification module sends a verification configuration message to the FPGA main control of the image analysis module according to a preset verification period, wherein the verification configuration message includes a first signal quality threshold; in response to receiving the verification configuration message sent by the signal verification module, the FPGA main control sending the second synchronization signal to the signal verification module;
响应于监听到第二同步信号,由信号验证模块确定第二同步信号的信号质量,并将第二同步信号的信号质量与第一信号质量门限进行对比,得到对应的质量差值Z1;其中本领域技术人员应该理解,任意本领域公知的度量都能够用于表征信号质量,例如RSRQ、RSRP、RSSI等等;此处的质量差值可以反映出信号在传输过程中的衰减;In response to monitoring the second synchronization signal, the signal verification module determines the signal quality of the second synchronization signal, and compares the signal quality of the second synchronization signal with the first signal quality threshold to obtain a corresponding quality difference value Z1; Those skilled in the art should understand that any metric known in the art can be used to characterize signal quality, such as RSRQ, RSRP, RSSI, etc.; the quality difference here can reflect signal attenuation during transmission;
将信号验证模块发送验证配置消息的时刻与信号验证模块再次监听到第二同步信号的时刻进行时间差计算得到响应时长XT;利用公式SH=Z1×a1+XT×a2计算得到信号损耗指数SH,其中a1、a2均为系数因子;Calculate the time difference between the moment when the signal verification module sends the verification configuration message and the moment when the signal verification module monitors the second synchronization signal again to obtain the response duration XT; the signal loss index SH is calculated by using the formula SH=Z1×a1+XT×a2, where a1 and a2 are both coefficient factors;
建立信号损耗指数SH随时间变化的曲线图,将信号损耗指数SH与损耗阈值相比较;若SH≥损耗阈值,则在对应的曲线图中截取对应的曲线段并标注为黄色,记为干扰曲线段;Establish a curve graph of the signal loss index SH versus time, and compare the signal loss index SH with the loss threshold; if SH ≥ the loss threshold, intercept the corresponding curve segment in the corresponding curve and mark it as yellow, and record it as the interference curve part;
在预设时间段内,统计干扰曲线段的数量为L1,将所有的干扰曲线段对时间进行积分得到干扰参考能量L2;利用Cy=L1×a3+L2×a4计算得到干扰系数Cy,其中a3、a4均为系数因子;In the preset time period, the number of statistical interference curve segments is L1, and all interference curve segments are integrated with time to obtain the interference reference energy L2; the interference coefficient Cy is calculated by using Cy=L1×a3+L2×a4, where a3 , a4 are coefficient factors;
将干扰系数Cy与干扰阈值相比较;若Cy≥干扰阈值,则判定信号干扰严重,通信状态异常,生成通信预警指令;Compare the interference coefficient Cy with the interference threshold; if Cy ≥ the interference threshold, it is determined that the signal interference is serious and the communication state is abnormal, and a communication warning command is generated;
信号验证模块用于将通信预警指令传输至控制器,控制器接收到通信预警指令后自动驱动报警模块发出警报,以提醒管理人员尽快处理;从而提高图像分析模块的识别效率和正确率;The signal verification module is used to transmit the communication warning command to the controller. After the controller receives the communication warning command, it automatically drives the alarm module to issue an alarm to remind managers to deal with it as soon as possible, thereby improving the recognition efficiency and accuracy of the image analysis module;
其中,图像分析模块在探测到通信预警指令后,进入主动待机模式,即不再以异常通信的FPGA主控来识别表计图像,待信号验证模块判断通信状态正常后,再继续二者之间的通信。Among them, the image analysis module enters the active standby mode after detecting the communication warning command, that is, the FPGA main control with abnormal communication is no longer used to identify the meter image. After the signal verification module judges that the communication state is normal, it will continue between the two. Communication.
一种基于深度学习的表计识别方法,应用于上述表计识别系统,包括如下步骤:A method for meter identification based on deep learning, applied to the above-mentioned meter identification system, includes the following steps:
步骤一:通过模型构建模块构建能对图像进行训练和识别的yolov3检测模型,并将构建好的yolov3检测模型传输至图像分析模块;Step 1: Build a yolov3 detection model that can train and identify images through the model building module, and transfer the constructed yolov3 detection model to the image analysis module;
步骤二:通过图像分析模块对图像采集模块采集的表计图像进行学习和识别,采用yolov3检测模型对采集的表计图像进行分析并识别出表计的读数;并将最终得到的表计读数经控制器传输至显示模块实时显示;Step 2: Learn and recognize the meter image collected by the image acquisition module through the image analysis module, analyze the collected meter image by using the yolov3 detection model, and identify the meter reading; The controller transmits to the display module for real-time display;
步骤三:通过信息记录模块记录图像分析模块的识别记录并将识别记录传输到信息整理模块;信息整理模块接收识别记录并对识别记录进行整理,构建参数检测训练样本,训练基于机器学习方法,得到参数补偿模型;Step 3: Record the identification records of the image analysis module through the information recording module and transmit the identification records to the information sorting module; the information sorting module receives the identification records and sorts the identification records, constructs a training sample for parameter detection, and the training is based on a machine learning method to obtain parameter compensation model;
步骤四:通过参数补偿模块采用参数补偿模型对yolov3检测模型进行修正,使得yolov3检测模型持续得到修正和完善,提高识别的正确率;Step 4: Use the parameter compensation model to correct the yolov3 detection model through the parameter compensation module, so that the yolov3 detection model is continuously revised and improved, and the accuracy of identification is improved;
步骤五:通过信号验证模块实时验证图像分析模块的通信状态,计算得到干扰系数Cy;若Cy≥干扰阈值,则判定信号干扰严重,通信状态异常,生成通信预警指令,以提醒管理人员尽快处理;Step 5: Verify the communication status of the image analysis module in real time through the signal verification module, and calculate the interference coefficient Cy; if Cy ≥ the interference threshold, it is determined that the signal interference is serious and the communication status is abnormal, and a communication warning command is generated to remind the management personnel to deal with it as soon as possible;
步骤六:图像分析模块在探测到通信预警指令后,进入主动待机模式,即不再以异常通信的FPGA主控来识别表计图像,待信号验证模块判断通信状态正常后,再继续二者之间的通信。Step 6: After the image analysis module detects the communication warning command, it enters the active standby mode, that is, the FPGA main control with abnormal communication is no longer used to identify the meter image. After the signal verification module judges that the communication state is normal, it will continue the two. communication between.
上述公式均是去除量纲取其数值计算,公式是由采集大量数据进行软件模拟得到最接近真实情况的一个公式,公式中的预设参数和预设阈值由本领域的技术人员根据实际情况设定或者大量数据模拟获得。The above formulas are calculated by removing the dimension and taking its numerical value. The formula is a formula that is closest to the real situation by collecting a large amount of data and performing software simulation. The preset parameters and preset thresholds in the formula are set by those skilled in the art according to the actual situation. Or a large amount of data simulation is obtained.
本发明的工作原理:The working principle of the present invention:
一种基于深度学习的表计识别方法和系统,在工作时,首先模型构建模块用于构建能对图像进行训练和识别的yolov3检测模型;图像采集模块用于采集表计图像,并将采集的表计图像传输至图像分析模块进行学习和识别;图像分析模块采用yolov3检测模型对采集的表计图像进行分析并识别出表计的读数,并将最终得到的表计读数经控制器传输至显示模块实时显示,达到无人巡视的目的;A method and system for meter recognition based on deep learning. When working, first the model building module is used to build a yolov3 detection model that can train and recognize images; the image acquisition module is used to collect meter images, and the collected The meter image is transmitted to the image analysis module for learning and recognition; the image analysis module uses the yolov3 detection model to analyze the collected meter image and identify the meter reading, and transmit the final meter reading through the controller to the display The module is displayed in real time to achieve the purpose of unmanned inspection;
信息记录模块与显示模块相连接,用于记录图像分析模块的识别记录并将识别记录传输到信息整理模块;信息整理模块接收识别记录并对识别记录进行整理,构建参数检测训练样本,训练基于机器学习方法,得到参数补偿模型;参数补偿模块接收到参数补偿模型后对yolov3检测模型进行修正,使得yolov3检测模型持续得到修正和完善,识别的正确率不断提高,整个过程都是自动进行的,从而使得工作可以广泛开展,工作的连续性和有效性得到保障;The information recording module is connected with the display module, and is used to record the identification records of the image analysis module and transmit the identification records to the information sorting module; the information sorting module receives the identification records and sorts the identification records, constructs a training sample for parameter detection, and the training is based on the machine The learning method is used to obtain the parameter compensation model; after the parameter compensation module receives the parameter compensation model, it corrects the yolov3 detection model, so that the yolov3 detection model is continuously revised and improved, and the recognition accuracy is continuously improved. Make the work can be widely carried out, and the continuity and effectiveness of the work are guaranteed;
信号验证模块用于实时验证图像分析模块的通信状态,首先按照预设验证周期发送验证配置消息至图像分析模块的FPGA主控,响应于接收到由信号验证模块发送的验证配置消息,由FPGA主控发送第二同步信号至信号验证模块;结合对应的质量差值Z1和响应时长XT计算得到信号损耗指数SH;根据信号损耗指数SH的变化趋势计算得到干扰系数Cy,若Cy≥干扰阈值,则判定信号干扰严重,通信状态异常,生成通信预警指令,以提示管理人员尽快处理;有效减少干扰信号的影响,从而提高图像分析模块的识别效率和正确率。The signal verification module is used to verify the communication status of the image analysis module in real time. First, it sends a verification configuration message to the FPGA master of the image analysis module according to the preset verification cycle. In response to receiving the verification configuration message sent by the signal verification module, the FPGA master The control sends the second synchronization signal to the signal verification module; the signal loss index SH is calculated according to the corresponding quality difference Z1 and the response time XT; the interference coefficient Cy is calculated according to the change trend of the signal loss index SH, if Cy ≥ the interference threshold, then It is determined that the signal interference is serious and the communication state is abnormal, and a communication warning command is generated to prompt the management personnel to deal with it as soon as possible; effectively reduce the influence of the interference signal, thereby improving the recognition efficiency and accuracy of the image analysis module.
在本说明书的描述中,参考术语“一个实施例”、“示例”、“具体示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, description with reference to the terms "one embodiment," "example," "specific example," etc. means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one aspect of the present invention. in one embodiment or example. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
以上公开的本发明优选实施例只是用于帮助阐述本发明。优选实施例并没有详尽叙述所有的细节,也不限制该发明仅为的具体实施方式。显然,根据本说明书的内容,可作很多的修改和变化。本说明书选取并具体描述这些实施例,是为了更好地解释本发明的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本发明。本发明仅受权利要求书及其全部范围和等效物的限制。The above-disclosed preferred embodiments of the present invention are provided only to help illustrate the present invention. The preferred embodiments do not set forth all the details and do not limit the invention to mere embodiments. Obviously, many modifications and variations are possible in light of the content of this specification. The present specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can well understand and utilize the present invention. The present invention is to be limited only by the claims and their full scope and equivalents.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210261718.0A CN114821025A (en) | 2022-03-16 | 2022-03-16 | A method and system for meter recognition based on deep learning |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210261718.0A CN114821025A (en) | 2022-03-16 | 2022-03-16 | A method and system for meter recognition based on deep learning |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114821025A true CN114821025A (en) | 2022-07-29 |
Family
ID=82528368
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210261718.0A Withdrawn CN114821025A (en) | 2022-03-16 | 2022-03-16 | A method and system for meter recognition based on deep learning |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114821025A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115587978A (en) * | 2022-10-08 | 2023-01-10 | 盐城工学院 | An online detection system for lamination and embossing of floor leather based on deep learning |
-
2022
- 2022-03-16 CN CN202210261718.0A patent/CN114821025A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115587978A (en) * | 2022-10-08 | 2023-01-10 | 盐城工学院 | An online detection system for lamination and embossing of floor leather based on deep learning |
CN115587978B (en) * | 2022-10-08 | 2023-04-21 | 盐城工学院 | Floor leather laminating embossing on-line measuring system based on degree of depth study |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113551775B (en) | Method and system for on-line monitoring and alarming of equipment faults based on infrared thermal imaging | |
CN118137682B (en) | Active detection system and method for hardware failure of distribution automation master station | |
CN202119539U (en) | Thermal image temperature measuring and fault location inspecting system | |
CN102305664A (en) | Thermal imaging temperature measurement and fault location inspection system | |
WO2025086414A1 (en) | Power distribution network fault detection method applicable to distributed power supply | |
CN113763667B (en) | A device and method for fire early warning and status monitoring based on 5G edge computing | |
CN114608741A (en) | Pressure sensor acquisition system based on big data | |
CN105160829A (en) | Automatic check and early warning method and system based on infrared imaging temperature measurement for electric power equipment | |
CN115528810A (en) | Temperature measurement data operation, inspection, analysis and management system based on power equipment | |
CN115407731A (en) | Production line working status monitoring and fault warning system and method | |
CN116389687A (en) | Power grid security monitoring system based on electronic product | |
CN114255784A (en) | A fault diagnosis method and related device for substation equipment based on voiceprint recognition | |
CN115061012A (en) | Intelligent monitoring and diagnosing system and method based on edge computing power supply grid | |
CN114821025A (en) | A method and system for meter recognition based on deep learning | |
CN116642594A (en) | An infrared temperature measurement method for plates based on image field of view | |
WO2021071884A1 (en) | System and method for determining an operating condition of a wind turbine | |
CN118952240B (en) | A real-time distance assessment method for near-electrical operation of a manipulator based on key point algorithm | |
CN118827925A (en) | Substation intelligent inspection image processing method and system based on artificial intelligence | |
CN118674328A (en) | Clothing production quality management system based on digitization | |
WO2022042045A1 (en) | Meter recognition apparatus, meter monitoring system, and monitoring method therefor | |
CN117190887B (en) | Aerogel thickness automatic detection system for mobile phone production | |
CN102849090B (en) | Goat intelligence Gap monitoring system and method | |
CN118654572A (en) | Spatial position detection method and system for collector bracket | |
CN106195247B (en) | A kind of control system of speed variator based on big data management mode | |
CN118627748A (en) | Intelligent supervision method for power facilities |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220729 |
|
WW01 | Invention patent application withdrawn after publication |