[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111079752A - Method and device for identifying circuit breaker in infrared image and readable storage medium - Google Patents

Method and device for identifying circuit breaker in infrared image and readable storage medium Download PDF

Info

Publication number
CN111079752A
CN111079752A CN201911320194.2A CN201911320194A CN111079752A CN 111079752 A CN111079752 A CN 111079752A CN 201911320194 A CN201911320194 A CN 201911320194A CN 111079752 A CN111079752 A CN 111079752A
Authority
CN
China
Prior art keywords
circuit breaker
image
infrared
infrared image
target
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.)
Pending
Application number
CN201911320194.2A
Other languages
Chinese (zh)
Inventor
李小平
钱基业
王谦
宫林
刘熊
李永福
彭华东
陈伟
龙英凯
李哲
戴豪礽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Electric Power Research Institute of State Grid Chongqing Electric Power Co Ltd
State Grid Corp of China SGCC
Original Assignee
Electric Power Research Institute of State Grid Chongqing Electric Power Co Ltd
State Grid Corp of China SGCC
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Electric Power Research Institute of State Grid Chongqing Electric Power Co Ltd, State Grid Corp of China SGCC filed Critical Electric Power Research Institute of State Grid Chongqing Electric Power Co Ltd
Priority to CN201911320194.2A priority Critical patent/CN111079752A/en
Publication of CN111079752A publication Critical patent/CN111079752A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

本申请公开了一种识别红外图像中的断路器的方法、装置及计算机可读存储介质。其中,方法包括对初始训练样本集进行图像预处理,使得每张红外样本图像上标注的断路器的检测框与预设参考面之间的夹角和参考面与相应断路器所成夹角相同;并进行样本总数扩增处理,最后利用处理得到的训练样本集训练神经网络模型得到目标识别模型。将待处理红外图像输入至目标识别模型中,得到包含标注断路器检测框的红外图像,该检测框与参考面之间的第一夹角与断路器和参考面所成的第二夹角的差值不大于预设角度误差值。本申请无需收集大量训练样本便可训练得到精度高的模型,且可提高断路器在红外图像中检测位置和实际所处位置的贴合度。

Figure 201911320194

The present application discloses a method, device and computer-readable storage medium for identifying a circuit breaker in an infrared image. The method includes image preprocessing on the initial training sample set, so that the angle between the detection frame of the circuit breaker marked on each infrared sample image and the preset reference plane and the angle formed by the reference plane and the corresponding circuit breaker are the same ; And the total number of samples is amplified, and finally the neural network model is trained by using the training sample set obtained by processing to obtain the target recognition model. Input the infrared image to be processed into the target recognition model, and obtain the infrared image including the detection frame of the marked circuit breaker, the first angle between the detection frame and the reference plane and the second angle formed by the circuit breaker and the reference plane The difference is not greater than the preset angle error value. The present application can train a model with high precision without collecting a large number of training samples, and can improve the fit between the detected position of the circuit breaker in the infrared image and the actual position.

Figure 201911320194

Description

Method and device for identifying circuit breaker in infrared image and readable storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method and an apparatus for identifying a circuit breaker in an infrared image, and a computer-readable storage medium.
Background
Along with infrared equipment's wide application in the electrified detection of circuit breaker, power supply company has accumulated a large amount of fortune dimension infrared picture data, whether have the circuit breaker to sieve by the manual work in the infrared picture at present to by the position that artifical mark circuit breaker is located in infrared image, so that be used for later stage storage and statistics etc..
However, the manual detection efficiency is low, the outdoor environment is complex, the detection result cannot be given in real time, in addition, the manual labeling format is not standard, and the labeled picture data does not help to improve the detection efficiency and the identification rate in the future, so that the use and analysis efficiency of the historical data is low, and the inspection and identification work in the future cannot be helped powerfully.
In order to solve the problems of manual detection and labeling, related technologies perform screening through an image recognition technology, but due to the problem of the infrared picture shooting angle, a large-scale picture is needed to be used as a training sample set, the recognition result is not always labeled according to the angle of the breaker in the picture, and most useless background information exists in the region obtained through labeling.
Disclosure of Invention
The method, the device and the computer readable storage medium for identifying the circuit breaker in the infrared image can be used for training to obtain a high-precision model without collecting a large number of training sample sets, so that the fitting degree of the detection position and the actual position of the circuit breaker in the infrared image is improved, and useless background information contained in the circuit breaker area is greatly reduced.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an embodiment of the present invention provides a method for identifying a circuit breaker in an infrared image, including:
acquiring an infrared image to be processed containing a target circuit breaker;
inputting the infrared image to be processed into a pre-constructed target identification model to obtain an infrared image containing a target circuit breaker detection frame marked by the data marking format, wherein the difference value between a first included angle between the target circuit breaker detection frame and the reference surface and a second included angle formed by the target circuit breaker and the reference surface is not more than a preset angle error value;
the target identification model is obtained by training a neural network model by using a training sample set obtained by carrying out image preprocessing and sample total number amplification processing on an initial training sample set, and an included angle between a detection frame of a circuit breaker and a preset reference surface, which is marked on each infrared sample image in the training sample set according to a preset data marking format, is the same as an included angle formed by the reference surface and the corresponding circuit breaker.
Optionally, each infrared sample image in the initial training sample set includes a corresponding label, where the label is used to indicate whether a circuit breaker in the graph is tilted and a tilt direction; the initial training sample set is subjected to sample total number amplification processing through image angle rotation, and the process of the initial training sample set for sample total number amplification processing through image angle rotation comprises the following steps:
respectively rotating the infrared sample image with the label being inclined according to a plurality of angle values in a first preset angle range, taking the image obtained by rotation as a new sample image, and simultaneously generating a corresponding label;
respectively rotating the infrared sample image with the label being not inclined according to a plurality of angle values in a second preset angle range, taking the image obtained by rotation as a new sample image, and simultaneously generating a corresponding label;
wherein a value in the second preset angle range is smaller than a value in the first preset angle range.
Optionally, after the to-be-processed infrared image including the target circuit breaker is acquired, the method further includes:
generating identification information of the infrared image to be processed so as to establish a corresponding relation between the infrared image to be processed and the target circuit breaker;
and the identification information is the number information of the target circuit breaker.
Optionally, the target circuit breaker detection frame is a rectangular frame, and after the to-be-processed infrared image is input into the target identification model and an infrared image including the target circuit breaker detection frame marked by the data marking format is obtained, the method further includes:
and outputting the coordinate information of the four vertexes of the target circuit breaker detection frame and the equipment parameter information of the target circuit breaker to be used as the attribute information of the infrared image for storage.
Optionally, the pre-image-preprocessing the initial training sample set includes:
dividing the infrared sample images in the initial sample training set into two types according to whether the circuit breaker in the image is inclined or not, and generating an image group to be processed and a positive target image group; the circuit breaker of the infrared sample image in the positive target image group is parallel to the central axis of the image;
calculating the deflection angle of a current circuit breaker in the current infrared sample image deviating from the reference surface for each infrared sample image in the image group to be processed, rotating the current infrared sample image according to the deflection angle until the current circuit breaker is parallel to the central axis of the image, marking a detection frame of the circuit breaker in the current infrared sample image by using a data marking method, and rotating the current infrared sample image until the angle formed by the current circuit breaker and the reference surface is the deflection angle after the detection frame is generated.
Optionally, the target identification model identifies the circuit breaker in the infrared image based on an SSD image identification method, and marks the circuit breaker detection frame in a VOC format.
Optionally, after acquiring the to-be-processed infrared image including the circuit breaker, the method further includes:
and carrying out gray level processing on the infrared image to be processed to obtain a binary infrared image, so as to input the binary infrared image into the target identification model.
Another aspect of an embodiment of the present invention provides an apparatus for identifying a circuit breaker in an infrared image, including:
the image acquisition module is used for acquiring an infrared image to be processed containing a target circuit breaker;
the target identification module is used for inputting the infrared image to be processed into a pre-constructed target identification model to obtain an infrared image which comprises a target circuit breaker detection frame marked by the data marking format, and the difference value between a first included angle between the target circuit breaker detection frame and the reference surface and a second included angle formed by the target circuit breaker and the reference surface is not more than a preset angle error value; the target recognition model is obtained by training a neural network model by using a training sample set obtained by carrying out image preprocessing and sample total number amplification processing on an initial training sample set, and an included angle between a detection frame of a circuit breaker and a preset reference surface, which is marked on each infrared sample image in the training sample set according to a preset data marking format, is the same as an included angle formed by the reference surface and the corresponding circuit breaker.
An embodiment of the present invention further provides an apparatus for identifying a circuit breaker in an infrared image, including a processor, where the processor is configured to implement the steps of the method for identifying a circuit breaker in an infrared image according to any one of the preceding items when executing a computer program stored in a memory.
Finally, an embodiment of the present invention provides a computer-readable storage medium, where a program for identifying a circuit breaker in an infrared image is stored, and when the program for identifying a circuit breaker in an infrared image is executed by a processor, the steps of the method for identifying a circuit breaker in an infrared image are implemented as in any one of the previous embodiments.
The technical scheme provided by the application has the advantages that the included angle between the detection frame of the circuit breaker marked on the sample image according to the preset data marking format and the preset reference surface is the same as the included angle between the reference surface and the corresponding circuit breaker by image preprocessing the sample image, so that invalid background information contained in the detection frame is reduced; the total number of training samples is increased through the total number of samples amplification processing, so that the angles in the images where various circuit breakers are located can be covered in a training sample set, and a model with high identification precision can be obtained without collecting a large number of training sample sets; the circuit breaker in the infrared image can be effectively marked in real time by utilizing a target recognition model obtained based on the training sample set through deep learning, so that the fitting degree of the detection position and the actual position of the circuit breaker in the infrared image is improved, and useless background information contained in the circuit breaker area in the detection frame is greatly reduced; in addition, the image data with uniform formatting is generated, and the storage and the later use of a back-end server are facilitated.
In addition, the embodiment of the invention also provides a corresponding implementation device and a computer readable storage medium for the method for identifying the circuit breaker in the infrared image, so that the method has higher practicability, and the device, the equipment and the computer readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for identifying a circuit breaker in an infrared image according to an embodiment of the present invention;
fig. 2 is a structural diagram of an embodiment of an apparatus for identifying a circuit breaker in an infrared image according to an embodiment of the present invention;
fig. 3 is a block diagram of another specific embodiment of an apparatus for identifying a circuit breaker in an infrared image according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for identifying a circuit breaker in an infrared image according to an embodiment of the present invention, where the embodiment of the present invention may include the following:
s101: and carrying out image preprocessing and total sample number amplification processing on the initial training sample set in advance, and training the neural network model by using the training sample set obtained by processing to obtain a target recognition model.
In the application, the target identification model can be divided into two steps in the execution process, wherein the first step is to identify the circuit breaker in the image in the infrared image, and the second step is to set a detection frame for the circuit breaker in the image after identifying the circuit breaker so as to frame the area position of the infrared image where the circuit breaker is located. For example, the target identification model is to identify the circuit breaker in the infrared image based on the SSD image identification method, and mark the circuit breaker detection frame in the VOC format. Of course, any image recognition algorithm and any labeling algorithm in any format can be used, which does not affect the implementation of the present application.
It can be understood that, the infrared image obtained by collecting the breaker is not straight in the picture due to the shooting angle problem, where straight means parallel to the central axis of the image but having various angles, such as 45 degrees in the left oblique direction and 180 degrees in the horizontal direction, but all the detection algorithms draw a straight frame at present, the detection frame cannot be attached to the target, the area of all pixel points in the frame is relatively large in order to include the breaker, correspondingly, the included useless background information is much, the size of all the detection frames is the same and is the same as that of the infrared image without an inclination angle, so that most of the breaker area of the detection frame of the infrared image with a large inclination angle is not framed, and subsequent temperature detection cannot be performed at all. Based on this, image preprocessing needs to be performed on the sample image in the initial training sample set, an included angle between the detection frame of the circuit breaker marked on the processed infrared sample image according to the preset data marking format and the preset reference surface is the same as an included angle formed by the reference surface and the corresponding circuit breaker, and the reference surface can be, for example, a plane where the central axis of the image is located, that is, the inclination angle of the detection frame and the clear angle of the circuit breaker are kept consistent.
In addition, because fewer samples are collected in an actual scene, various target angles cannot be covered, and the number of samples and the types of samples of a training model determine the training precision of the model within a certain range. Based on this, the method and the device also perform sample total number amplification processing on the sample images in the initial training sample set, for example, the sample total number can be increased through image angle rotation, and the rotated sample images are stored as new training samples, so that the number and diversity of the training sample set are increased, and the model training precision is improved.
S102: and acquiring the infrared image to be processed containing the target circuit breaker.
The technical scheme provided by the application can be directly integrated into the equipment for collecting the infrared image, so that after the infrared image collecting equipment obtains the infrared image with the definition meeting the requirement, the infrared image collecting equipment can obtain a target recognition model by utilizing an S101 training and mark the circuit breaker by utilizing a detection frame; the technical scheme provided by the application can be integrated on a handheld terminal or any intelligent terminal device or a server, the infrared image acquisition device sends the acquired infrared image containing the target circuit breaker to the handheld terminal or the intelligent terminal or the server, and the terminal or the server marks the target area where the voltage transformer to be detected in the image is located by using the model obtained through S101 training after receiving the original image. In order to facilitate storage and tracing of subsequent infrared images and solve the problem of false detection caused by non-standard picture storage, index information can be added to the images after the infrared images are received, the index information is used for uniquely identifying information of the infrared images by establishing a corresponding relation between the infrared images to be processed and a target circuit breaker, namely identification information of the infrared images to be processed is generated, and the identification information can be the serial number of the circuit breaker.
S103: and inputting the infrared image to be processed into the target identification model to obtain the infrared image containing the target circuit breaker detection frame marked by the data marking format.
It can be understood that the angle value formed between the labeled detection frame and the reference surface is not completely the same as the angle value formed between the target circuit breaker and the reference surface, and both the error value and the accuracy requirement are considered, and the difference value between the first included angle between the target circuit breaker detection frame and the reference surface and the second included angle formed between the target circuit breaker and the reference surface is not greater than the preset angle error value. The angle error value may be, for example, 5 °, for example, the angle between the target circuit breaker and the plane of the central axis is 45 °, as long as the angle between the target circuit breaker detection frame and the plane of the central axis is [40 °, 50 ° ] is satisfactory. The preset angle error value can be valued according to the actual application scene and the precision requirement, and the application does not limit the value at all.
In the technical scheme provided by the embodiment of the invention, the sample image is subjected to image preprocessing, so that the included angle between the detection frame of the circuit breaker marked on the sample image according to the preset data marking format and the preset reference surface is the same as the included angle between the reference surface and the corresponding circuit breaker, and the invalid background information contained in the detection frame is reduced; the total number of training samples is increased through the total number of samples amplification processing, so that the angles in the images where various circuit breakers are located can be covered in a training sample set, and a model with high identification precision can be obtained without collecting a large number of training sample sets; the circuit breaker in the infrared image can be effectively marked in real time by utilizing a target recognition model obtained based on the training sample set through deep learning, so that the fitting degree of the detection position and the actual position of the circuit breaker in the infrared image is improved, and useless background information contained in the circuit breaker area in the detection frame is greatly reduced; in addition, the image data with uniform formatting is generated, and the storage and the later use of a back-end server are facilitated.
In the foregoing embodiment, how to perform the total sample number amplification processing on the initial training sample set by rotating the image angle is not limited, and a specific implementation method is provided in this embodiment, and may include the following steps:
each infrared sample image in the initial training sample set comprises a corresponding label, and the label is used for indicating whether the circuit breaker in the graph is inclined or not and the inclination direction. For example, may include class 3 tags, respectively c representing a positive target, i.e., the breaker has not been tilted; cR represents that the breaker is tilted and the tilted direction of the breaker is from top right to bottom left in the drawing, and cL represents that the breaker is tilted and the tilted direction of the breaker is from top left to bottom right in the drawing.
Respectively rotating the infrared sample image with the label being inclined according to a plurality of angle values in a first preset angle range, taking the image obtained by rotation as a new sample image, and simultaneously generating a corresponding label; for example, for an infrared sample image of a cR, cL label, 2 sets of two angles of [0 °, 90 ° ], [ -90 °, 0 ° ] are randomly rotated for the circuit breaker between [ -90 °, 90 ° ], and then the original image is rotated and saved.
Respectively rotating the infrared sample image with the label being not inclined according to a plurality of angle values in a second preset angle range, taking the image obtained by rotation as a new sample image, and simultaneously generating a corresponding label; wherein the value in the second preset angle range is smaller than the value in the first preset angle range. For the infrared sample image marked c, in order to enhance the anti-interference capability, a certain perturbation can be added in a small angle range, for example, a random number can be taken at each of [ -4 °, 0 ° ], [0 °, 4 ° ], and then the image is rotated and saved.
Therefore, the embodiment of the invention realizes the total sample number amplification processing by rotating the image angle, not only increases the total number of training samples, but also enriches the types of the training samples, and is beneficial to improving the precision of the training model.
The foregoing embodiment is not limited to how to perform image preprocessing on the initial training sample set to achieve the desired effect, and a specific implementation method provided in this embodiment may include the following steps:
and dividing the infrared sample images in the initial sample training set into two types according to whether the breaker in the image is inclined or not, and generating an image group to be processed and a positive target image group. The breaker of the infrared sample image in the positive target image group is parallel to the central axis of the image, namely the infrared sample image in the positive target image group is not inclined; and all the infrared sample images in the image group to be processed are inclined.
Calculating the deflection angle of a current circuit breaker deviating from a reference surface in a current infrared sample image of each infrared sample image in the image group to be processed, rotating the current infrared sample image according to the deflection angle until the current circuit breaker is parallel to the central axis of the image, simultaneously marking a detection frame of the circuit breaker in the current infrared sample image by using a data marking method, and rotating the current infrared sample image to the deflection angle formed by the current circuit breaker and the reference surface after the detection frame is generated.
Optionally, a two-dimensional coordinate system may be established in the image, and the deflection angle is calculated by combining the coordinate value of each pixel point in the coordinate system with the basic geometric knowledge. The method comprises the steps of rotating the circuit breaker, namely enabling the circuit breaker to be parallel to the central axis of an image, setting a detection frame for the image by adopting any image identification method and marking method in the related technology, and rotating the detection frame with the image to the original image angle after setting the detection frame, so that the inclination angle of the detection frame is consistent with that of the circuit breaker.
Therefore, the embodiment of the invention improves the fitting degree of the detection frame and the circuit breaker by preprocessing the sample image, and is beneficial to improving the precision of the training model.
As an optional implementation manner, in order to further improve the image recognition effect and reduce the interference of useless background information, the to-be-processed infrared image may be subjected to gray scale processing to obtain a binarized infrared image, which is used for inputting the binarized infrared image into the target recognition model. Correspondingly, gray processing can be performed on each infrared sample image in the training sample set, and model training can be performed by using the image subjected to gray processing.
In addition, it should be noted that the system may further include an infrared spectrum database, where the infrared image of the circuit breaker is stored in the infrared spectrum database, and in order to improve richness of information stored in the database and facilitate operations such as daily maintenance and overhaul of the subsequent voltage transformer, after S103, if the target circuit breaker detection frame is a rectangular frame, the coordinate information of four vertices of the target circuit breaker detection frame and the device parameter information of the target circuit breaker are further output to be stored as attribute information of the infrared image.
It should be noted that, in the present application, there is no strict sequential execution order among the steps, and as long as the logical order is met, the steps may be executed simultaneously or according to a certain preset order, and fig. 1 is only an exemplary manner, and does not represent that only the execution order is the order.
The embodiment of the invention also provides a corresponding device for the method for identifying the circuit breaker in the infrared image, so that the method has higher practicability. Wherein the means can be described separately from the functional module point of view and the hardware point of view. The following describes an apparatus for identifying a circuit breaker in an infrared image according to an embodiment of the present invention, and the apparatus for identifying a circuit breaker in an infrared image described below and the method for identifying a circuit breaker in an infrared image described above may be referred to correspondingly.
Based on the angle of the functional module, referring to fig. 2, fig. 2 is a structural diagram of an apparatus for identifying a circuit breaker in an infrared image according to an embodiment of the present invention, in a specific implementation manner, the apparatus may include:
the model training module 201 is configured to perform image preprocessing and sample total number amplification processing on an initial training sample set in advance, train a neural network model with the training sample set obtained through the processing to obtain a target identification model, and obtain an included angle between a detection frame of a circuit breaker and a preset reference surface, which is marked on each infrared sample image in the training sample set according to a preset data marking format, and the included angle between the reference surface and the corresponding circuit breaker is the same.
And the image acquisition module 202 is configured to acquire an infrared image to be processed, which includes the target circuit breaker.
And the target identification module 203 is used for inputting the infrared image to be processed into the target identification model to obtain the infrared image containing the target circuit breaker detection frame marked by using the data marking format, and the difference value between a first included angle between the target circuit breaker detection frame and the reference surface and a second included angle formed by the target circuit breaker and the reference surface is not more than a preset angle error value.
Optionally, in some embodiments of this embodiment, the model training module 201 may include a sample amplification sub-module, where the sample amplification sub-module is configured to perform total sample number amplification processing by rotating an image angle, and specifically may include:
the first rotating unit is used for respectively rotating the infrared sample image with the label inclined according to a plurality of angle values in a first preset angle range, taking the image obtained by rotation as a newly added sample image and simultaneously generating a corresponding label;
the second rotating unit is used for respectively rotating the infrared sample image of which the label is not inclined according to a plurality of angle values in a second preset angle range, taking the image obtained by rotation as a newly added sample image and simultaneously generating a corresponding label; wherein the value in the second preset angle range is smaller than the value in the first preset angle range.
Optionally, in other embodiments of this embodiment, the model training module 201 may include an image preprocessing sub-module, where the image preprocessing sub-module includes:
the image classification unit is used for classifying the infrared sample images in the initial sample training set into two types according to whether the circuit breaker in the image is inclined or not, and generating an image group to be processed and a positive target image group; the circuit breaker of the infrared sample image in the positive target image group is parallel to the central axis of the image;
the image processing unit is used for calculating a deflection angle of a current circuit breaker in a current infrared sample image deviating from a reference surface for each infrared sample image in the image group to be processed, rotating the current infrared sample image according to the deflection angle until the current circuit breaker is parallel to a central axis of the image, meanwhile, marking a detection frame of the circuit breaker in the current infrared sample image by using a data marking method, and rotating the current infrared sample image to a deflection angle formed by the current circuit breaker and the reference surface after the detection frame is generated.
As an optional implementation manner, the apparatus may further include, for example, a grayscale processing module, an identification information generating module, and a storage information generating module; the gray processing module is used for carrying out gray processing on the infrared image to be processed to obtain a binary infrared image so as to input the binary infrared image into the target identification model; the identification information generation module is used for generating identification information of the infrared image to be processed so as to establish a corresponding relation between the infrared image to be processed and the target circuit breaker; the identification information is the number information of the target circuit breaker; the storage information generation module is used for outputting the coordinate information of the four vertexes of the target circuit breaker detection frame and the equipment parameter information of the target circuit breaker to be stored as the attribute information of the infrared image.
The functions of the functional modules of the device for identifying a circuit breaker in an infrared image according to the embodiments of the present invention may be specifically implemented according to the method in the embodiments of the method, and the specific implementation process may refer to the description related to the embodiments of the method, which is not described herein again.
Therefore, the embodiment of the invention can train to obtain the model with high precision without collecting a large amount of training sample sets, improves the fitting degree of the detection position of the circuit breaker in the infrared image and the actual position, and greatly reduces useless background information contained in the circuit breaker area.
The above-mentioned device for identifying a circuit breaker in an infrared image is described from the perspective of a functional module, and further, the present application also provides a device for identifying a circuit breaker in an infrared image, which is described from the perspective of hardware. Fig. 3 is a block diagram of another example of identifying a circuit breaker in an infrared image according to an embodiment of the present disclosure. As shown in fig. 3, the apparatus comprises a memory 30 for storing a computer program;
the processor 31 is configured to implement the steps of the method for detecting the abnormal temperature point of the voltage transformer according to the above embodiment when executing the computer program.
The processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 31 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 31 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 31 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 31 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
Memory 30 may include one or more computer-readable storage media, which may be non-transitory. Memory 30 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 30 is at least used for storing the following computer program 301, wherein after being loaded and executed by the processor 31, the computer program can implement the relevant steps of the testing method disclosed in any of the foregoing embodiments. In addition, the resources stored by the memory 30 may also include an operating system 302, data 303, and the like, and the storage may be transient storage or permanent storage. Operating system 302 may include Windows, Unix, Linux, etc. Data 303 may include, but is not limited to, data corresponding to test results, and the like.
In some embodiments, the testing device may further include a display 32, an input/output interface 33, a communication interface 34, a power source 35, a communication bus 36, and a sensor 37.
Those skilled in the art will appreciate that the configuration shown in FIG. 3 is not intended to be limiting of testing devices and may include more or fewer components than those shown.
The function of each functional module of the device for identifying a circuit breaker in an infrared image according to the embodiment of the present invention can be specifically implemented according to the method in the embodiment of the method, and the specific implementation process may refer to the description related to the embodiment of the method, which is not described herein again.
Therefore, the embodiment of the invention can train to obtain the model with high precision without collecting a large amount of training sample sets, improves the fitting degree of the detection position of the circuit breaker in the infrared image and the actual position, and greatly reduces useless background information contained in the circuit breaker area.
It is to be understood that, if the method for identifying the circuit breaker in the infrared image in the above embodiment is implemented in the form of a software functional unit and sold or used as a separate product, it may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable magnetic disk, a CD-ROM, a magnetic or optical disk, and other various media capable of storing program codes.
Based on this, the embodiment of the present invention further provides a computer readable storage medium, which stores a program for identifying a circuit breaker in an infrared image, and the program for identifying a circuit breaker in an infrared image is executed by a processor, and the steps of the method for identifying a circuit breaker in an infrared image are as described in any one of the above embodiments.
The functions of the functional modules of the computer-readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention can train to obtain the model with high precision without collecting a large amount of training sample sets, improves the fitting degree of the detection position of the circuit breaker in the infrared image and the actual position, and greatly reduces useless background information contained in the circuit breaker area.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
A method, an apparatus, and a computer-readable storage medium for identifying a circuit breaker in an infrared image provided by the present application are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1.一种识别红外图像中的断路器的方法,其特征在于,包括:1. A method for identifying a circuit breaker in an infrared image, comprising: 获取包含目标断路器的待处理红外图像;Obtain a pending infrared image containing the target circuit breaker; 将所述待处理红外图像输入至预先构建的目标识别模型中,得到包含利用所述数据标注格式标注所述目标断路器检测框的红外图像,所述目标断路器检测框与所述参考面之间的第一夹角与所述目标断路器和所述参考面所成的第二夹角的差值不大于预设角度误差值;Input the infrared image to be processed into a pre-built target recognition model, and obtain an infrared image that includes marking the target circuit breaker detection frame with the data annotation format, and the target circuit breaker detection frame and the reference surface are connected. The difference between the first included angle and the second included angle formed by the target circuit breaker and the reference plane is not greater than a preset angle error value; 其中,所述目标识别模型为利用经过对初始训练样本集进行图像预处理和样本总数扩增处理后得到的训练样本集训练神经网络模型所得,所述训练样本集中每张红外样本图像上按照预设数据标注格式标注的断路器的检测框与预设参考面之间的夹角,和所述参考面与相应断路器所成夹角相同。The target recognition model is obtained by training a neural network model with a training sample set obtained after performing image preprocessing on the initial training sample set and amplifying the total number of samples. It is assumed that the included angle between the detection frame of the circuit breaker marked in the data labeling format and the preset reference plane is the same as the included angle formed by the reference plane and the corresponding circuit breaker. 2.根据权利要求1所述的识别红外图像中的断路器的方法,其特征在于,所述初始训练样本集中每个红外样本图像均包含相应标签,所述标签用于表示图中断路器是否发生倾斜以及倾斜方向;所述初始训练样本集通过旋转图像角度进行样本总数扩增处理,所述初始训练样本集通过旋转图像角度进行样本总数扩增处理过程包括:2 . The method for recognizing circuit breakers in infrared images according to claim 1 , wherein each infrared sample image in the initial training sample set includes a corresponding label, and the label is used to indicate whether the circuit breaker in the image is not. 3 . Inclination and inclination direction occur; the initial training sample set is processed by rotating the image angle to increase the total number of samples, and the initial training sample set is processed by rotating the image angle to increase the total number of samples. The process includes: 按照第一预设角度范围内多个角度值分别对标签为发生倾斜的红外样本图像进行旋转,并将旋转得到的图像作为新增样本图像,同时生成相应标签;Rotate the infrared sample image whose label is tilted according to multiple angle values within the first preset angle range, and use the rotated image as a newly added sample image, and generate corresponding labels at the same time; 按照第二预设角度范围内多个角度值分别对标签为没有倾斜的红外样本图像进行旋转,并将旋转得到的图像作为新增样本图像,同时生成相应标签;Rotate the infrared sample images that are labeled as not tilted according to multiple angle values within the second preset angle range, and use the rotated images as new sample images, and generate corresponding labels at the same time; 其中,所述第二预设角度范围中的值小于所述第一预设角度范围的值。Wherein, the value in the second preset angle range is smaller than the value in the first preset angle range. 3.根据权利要求2所述的识别红外图像中的断路器的方法,其特征在于,所述获取包含目标断路器的待处理红外图像之后,还包括:3. The method for recognizing a circuit breaker in an infrared image according to claim 2, wherein after acquiring the to-be-processed infrared image including the target circuit breaker, the method further comprises: 生成所述待处理红外图像的标识信息,以用于将所述待处理红外图像和所述目标断路器建立对应关系;generating identification information of the infrared image to be processed, so as to establish a corresponding relationship between the infrared image to be processed and the target circuit breaker; 其中,所述标识信息为所述目标断路器的编号信息。Wherein, the identification information is serial number information of the target circuit breaker. 4.根据权利要求3所述的识别红外图像中的断路器的方法,其特征在于,所述目标断路器检测框为矩形框,所述将所述待处理红外图像输入至所述目标识别模型中,得到包含利用所述数据标注格式标注所述目标断路器检测框的红外图像之后,还包括:4 . The method for recognizing a circuit breaker in an infrared image according to claim 3 , wherein the target circuit breaker detection frame is a rectangular frame, and the infrared image to be processed is input into the target recognition model. 5 . , after obtaining the infrared image including marking the target circuit breaker detection frame with the data marking format, it also includes: 输出所述目标断路器检测框的四个顶点坐标信息及所述目标断路器的设备参数信息,以作为所述红外图像的属性信息进行存储。The coordinate information of the four vertices of the target circuit breaker detection frame and the device parameter information of the target circuit breaker are output to be stored as attribute information of the infrared image. 5.根据权利要求1至4任意一项所述的识别红外图像中的断路器的方法,其特征在于,所述预先对初始训练样本集进行图像预处理包括:5. The method for identifying a circuit breaker in an infrared image according to any one of claims 1 to 4, wherein the preprocessing of the image preprocessing on the initial training sample set comprises: 按照图中断路器是否发生倾斜将所述初始样本训练集中的红外样本图像分为两类,生成待处理图像组和正目标图像组;所述正目标图像组中的红外样本图像的断路器与图像中轴线平行;Divide the infrared sample images in the initial sample training set into two categories according to whether the circuit breaker is inclined in the figure, and generate the image group to be processed and the positive target image group; the circuit breaker and the image of the infrared sample image in the positive target image group The central axis is parallel; 对所述待处理图像组中的每张红外样本图像,计算当前红外样本图像中的当前断路器偏离所述参考面的偏转角度,按照所述偏转角度旋转所述当前红外样本图像直至所述当前断路器与图像中轴线平行,同时利用数据标注方法在所述当前红外样本图像中标注断路器的检测框,在生成所述检测框后将所述当前红外样本图像旋转至所述当前断路器与所述参考面所成角度为所述偏转角度。For each infrared sample image in the to-be-processed image group, calculate the deflection angle of the current circuit breaker in the current infrared sample image deviating from the reference plane, and rotate the current infrared sample image according to the deflection angle until the current The circuit breaker is parallel to the axis of the image, and the detection frame of the circuit breaker is marked in the current infrared sample image by using the data labeling method. After the detection frame is generated, the current infrared sample image is rotated to the current circuit breaker and the current circuit breaker. The angle formed by the reference plane is the deflection angle. 6.根据权利要求5所述的识别红外图像中的断路器的方法,其特征在于,所述目标识别模型为基于SSD图像识别方法识别红外图像中的断路器,并采用VOC格式标注断路器检测框。6. The method for recognizing a circuit breaker in an infrared image according to claim 5, wherein the target recognition model is to identify the circuit breaker in the infrared image based on the SSD image recognition method, and use the VOC format to mark the circuit breaker detection frame. 7.根据权利要求6所述的识别红外图像中的断路器的方法,其特征在于,所述获取包含断路器的待处理红外图像之后,还包括:7. The method for identifying a circuit breaker in an infrared image according to claim 6, wherein after acquiring the infrared image to be processed including the circuit breaker, the method further comprises: 对所述待处理红外图像进行灰度处理,得到二值化红外图像,以用于将所述二值化红外图像输入至所述目标识别模型中。Grayscale processing is performed on the infrared image to be processed to obtain a binarized infrared image, which is used for inputting the binarized infrared image into the target recognition model. 8.一种识别红外图像中的断路器的装置,其特征在于,包括:8. A device for identifying a circuit breaker in an infrared image, comprising: 图像获取模块,用于获取包含目标断路器的待处理红外图像;The image acquisition module is used to acquire the infrared image to be processed including the target circuit breaker; 目标识别模块,用于将所述待处理红外图像输入至预先构建的目标识别模型中,得到包含利用所述数据标注格式标注所述目标断路器检测框的红外图像,所述目标断路器检测框与所述参考面之间的第一夹角与所述目标断路器和所述参考面所成的第二夹角的差值不大于预设角度误差值;所述目标识别模型为利用经过对初始训练样本集进行图像预处理和样本总数扩增处理后得到的训练样本集训练神经网络模型所得,所述训练样本集中每张红外样本图像上按照预设数据标注格式标注的断路器的检测框与预设参考面之间的夹角,和所述参考面与相应断路器所成夹角相同。A target recognition module, configured to input the infrared image to be processed into a pre-built target recognition model, and obtain an infrared image including the target circuit breaker detection frame marked with the data annotation format, the target circuit breaker detection frame The difference between the first angle with the reference plane and the second angle formed by the target circuit breaker and the reference plane is not greater than a preset angle error value; The training sample set obtained after the initial training sample set is subjected to image preprocessing and total number of samples amplification processing is obtained by training the neural network model. The detection frame of the circuit breaker marked according to the preset data marking format on each infrared sample image in the training sample set The included angle with the preset reference surface is the same as the included angle between the reference surface and the corresponding circuit breaker. 9.一种识别红外图像中的断路器的装置,其特征在于,包括处理器,所述处理器用于执行存储器中存储的计算机程序时实现如权利要求1至7任一项所述识别红外图像中的断路器的方法的步骤。9. A device for recognizing a circuit breaker in an infrared image, characterized in that it comprises a processor, and the processor is used to implement the recognizing infrared image according to any one of claims 1 to 7 when the processor is used to execute a computer program stored in a memory The steps in the method of the circuit breaker. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有识别红外图像中的断路器的程序,所述识别红外图像中的断路器的程序被处理器执行时实现如权利要求1至7任一项所述识别红外图像中的断路器的方法的步骤。10. A computer-readable storage medium, wherein a program for identifying a circuit breaker in an infrared image is stored on the computer-readable storage medium, and when the program for identifying a circuit breaker in an infrared image is executed by a processor Steps for implementing the method of identifying a circuit breaker in an infrared image as claimed in any one of claims 1 to 7.
CN201911320194.2A 2019-12-19 2019-12-19 Method and device for identifying circuit breaker in infrared image and readable storage medium Pending CN111079752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911320194.2A CN111079752A (en) 2019-12-19 2019-12-19 Method and device for identifying circuit breaker in infrared image and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911320194.2A CN111079752A (en) 2019-12-19 2019-12-19 Method and device for identifying circuit breaker in infrared image and readable storage medium

Publications (1)

Publication Number Publication Date
CN111079752A true CN111079752A (en) 2020-04-28

Family

ID=70315938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911320194.2A Pending CN111079752A (en) 2019-12-19 2019-12-19 Method and device for identifying circuit breaker in infrared image and readable storage medium

Country Status (1)

Country Link
CN (1) CN111079752A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113838046A (en) * 2021-10-08 2021-12-24 南方电网数字电网研究院有限公司 Drainage plate overheating identification method and device, computer equipment and storage medium
WO2022142783A1 (en) * 2020-12-29 2022-07-07 华为云计算技术有限公司 Image processing method and related device
CN114821241A (en) * 2022-05-23 2022-07-29 广东电网有限责任公司 Expansion method of circuit breaker preventive test data sample and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101636827B1 (en) * 2015-04-30 2016-07-07 주식회사 대영산전 Vehicle number recognition systems
CN107798336A (en) * 2017-09-18 2018-03-13 广东电网有限责任公司东莞供电局 Infrared temperature measurement image component identification method
CN109101906A (en) * 2018-07-27 2018-12-28 中国南方电网有限责任公司超高压输电公司贵阳局 A kind of converting station electric power equipment infrared image exception real-time detection method and device
CN109948613A (en) * 2019-03-22 2019-06-28 国网重庆市电力公司电力科学研究院 Infrared image recognition method and device for arrester

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101636827B1 (en) * 2015-04-30 2016-07-07 주식회사 대영산전 Vehicle number recognition systems
CN107798336A (en) * 2017-09-18 2018-03-13 广东电网有限责任公司东莞供电局 Infrared temperature measurement image component identification method
CN109101906A (en) * 2018-07-27 2018-12-28 中国南方电网有限责任公司超高压输电公司贵阳局 A kind of converting station electric power equipment infrared image exception real-time detection method and device
CN109948613A (en) * 2019-03-22 2019-06-28 国网重庆市电力公司电力科学研究院 Infrared image recognition method and device for arrester

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022142783A1 (en) * 2020-12-29 2022-07-07 华为云计算技术有限公司 Image processing method and related device
CN113838046A (en) * 2021-10-08 2021-12-24 南方电网数字电网研究院有限公司 Drainage plate overheating identification method and device, computer equipment and storage medium
CN114821241A (en) * 2022-05-23 2022-07-29 广东电网有限责任公司 Expansion method of circuit breaker preventive test data sample and related device

Similar Documents

Publication Publication Date Title
CN109615611B (en) Inspection image-based insulator self-explosion defect detection method
CN108648169B (en) Method and device for automatic identification of insulator defects in high-voltage transmission towers
CN109886928B (en) Target cell marking method, device, storage medium and terminal equipment
CN112990086B (en) Remote sensing image building detection method and device and computer readable storage medium
CN111080693A (en) Robot autonomous classification grabbing method based on YOLOv3
US20190156202A1 (en) Model construction in a neural network for object detection
US20170308736A1 (en) Three dimensional object recognition
CN108228798A (en) The method and apparatus for determining the matching relationship between point cloud data
CN111144325A (en) Fault identification and positioning method, device and equipment for power equipment of transformer substation
CN112200081A (en) Abnormal behavior identification method, device, electronic device and storage medium
CN112348765A (en) Data enhancement method and device, computer readable storage medium and terminal equipment
CN116168351B (en) Inspection method and device for power equipment
CN111079752A (en) Method and device for identifying circuit breaker in infrared image and readable storage medium
Li et al. Automatic comic page segmentation based on polygon detection
CN115909059A (en) Natural resource sample library establishing method and device
CN111680750A (en) Image recognition method, device and equipment
CN111738252B (en) Text line detection method, device and computer system in image
CN112446231A (en) Pedestrian crossing detection method and device, computer equipment and storage medium
CN115908988A (en) Defect detection model generation method, device, equipment and storage medium
CN107767366B (en) A transmission line fitting method and device
CN114120086A (en) Pavement disease recognition method, image processing model training method, device and electronic equipment
CN110276260B (en) A product detection method based on depth camera
CN117788444A (en) SMT patch offset detection method, SMT patch offset detection device and SMT patch offset detection system
CN111723688A (en) Evaluation method, device and electronic device for human action recognition results
CN116681792A (en) Subgraph generation method, device and equipment of vector drawing and readable storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200428