Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The embodiment of the invention provides an image verification method for low-voltage transformer area metering equipment in the power industry, which comprises the following steps:
Acquiring an image to be detected of low-voltage station area metering equipment in the power industry;
inputting an image to be detected of low-voltage area metering equipment in the power industry into a power image quality analysis model for quality analysis, and outputting an image quality analysis result;
Judging whether the image to be detected meets a preset quality standard or not based on an image quality analysis result;
and if the quality standard is met, carrying out cloud identification on the image to be detected.
Referring to fig. 1, in this embodiment, an image to be detected of a low-voltage transformer area metering device in the power industry is firstly obtained through an image acquisition device, the obtained image is input into a preset power image quality analysis model for image quality analysis, a final image quality analysis result is output, then whether the quality of the image meets a preset quality standard is judged, if yes, the image to be detected is input into a cloud for identification, whether a fault exists in the power device is detected, if not, the image to be detected is acquired again, and in this embodiment, before the image to be detected is identified, the quality of the image to be detected is firstly judged, the low-quality image to be detected is screened out, only the high-quality image to be detected is identified, and by improving the quality of the image to be detected, the accuracy of the fault identification result of the power device is improved.
Based on the above method, the above power image quality analysis model includes:
acquiring an initial image set of low-voltage station area metering equipment in the power industry;
screening out error images in the initial image set, and forming a standard image set from the residual images;
inputting the standard image set into a network model for image target detection, and extracting power equipment in the standard image set;
Calculating the number of pixel points occupied by the power equipment and the positions of the pixel points based on the power equipment in the extracted standard image set;
Performing quality analysis on the image based on the number of pixels occupied by the power equipment and the positions of the pixels, and outputting a model analysis result;
Unified reading analysis is carried out on the standard data set by using OpenCV computer vision software, and a reading analysis result is output;
And combining the model training result and the reading analysis result into the final output of the power image quality analysis model.
In this embodiment, the sample image is further read and analyzed by penCV computer vision software, and the analysis result of the model is checked, so that the accuracy of the power image quality analysis model is improved. The method comprises the steps of obtaining an initial image set of low-voltage area metering equipment in the power industry, screening error images in the initial image set, forming a standard image set by residual images, inputting images in the standard image set into a network model for image target detection, extracting power equipment in the standard image set, wherein the network model can determine the type and the position of the power equipment, then calculating the proportion of the power equipment in the image and the position of the power equipment in the image based on the number of pixel points and the position of the pixel points in the area where the power equipment is located, further carrying out quality analysis on the image, outputting a model analysis result, carrying out unified reading analysis on the standard image set through OpenCV computer vision software, outputting a reading analysis result, checking the model analysis result, and taking the checked output result as a final output result of the network model to complete construction of the power image quality analysis model.
Referring to fig. 2, the step of screening the initial image set is as follows, based on the power image quality analysis model:
S1, converting images in an initial image set into images with the same size;
S2, randomly selecting an image from the initial image set, and acquiring the attribute of the selected image as a first attribute group;
S3, randomly selecting an image from the initial image set, acquiring the attribute of the selected image and the attribute group, comparing, if the comparison is passed, dividing the selected image into the attribute group passing the comparison, and if the comparison is not passed, taking the attribute of the selected image as a new attribute group;
S4, repeating the step S3 until all the images in the initial image set are compared;
And S5, selecting the attribute group with the largest number of pictures as a correct image, screening out error images in the rest attribute groups, and finishing the screening of the initial image set.
In this embodiment, image target detection is performed, and the initial image set needs to be screened, so that the error image in the initial image set is deleted. The method comprises the steps of firstly converting all images in an initial image set into the same size, randomly selecting one image from the initial image set, obtaining attributes of the selected image to serve as a first attribute group, sequentially comparing the image with the existing attribute groups, dividing the image into the existing attribute groups if the attributes are the same, dividing the image into new attribute groups if the attributes are not the same, sequentially selecting the image from the initial image set to perform attribute comparison, obtaining a plurality of attribute groups after all the comparison of the images in the initial image set is completed, selecting the attribute group with the largest image number as a standard attribute group, screening out error images in the rest attribute groups, and obtaining the image in the standard attribute group as the standard image set.
Based on the power image quality analysis model, the specific analysis process of the analysis result of the model is as follows:
extracting power equipment in the image by adopting a network model;
if the power equipment in the image is extracted, the pixel number occupied by the power equipment is obtained, and the ratio of the pixel number occupied by the power equipment to the total pixel number of the image is calculated;
if the ratio is within the preset threshold range, representing the image pixel point by a two-dimensional coordinate, and calculating the distance between the power equipment and the image edge;
If the distance between the power equipment and the image edge accords with the preset distance, acquiring the shape of the power equipment described by the edge pixel points of the power equipment, and calculating the similarity between the shape of the power equipment in the image and a preset template;
And if the similarity meets the requirement, outputting a model analysis result.
Referring to fig. 3, in this embodiment, a network model is used to extract power equipment in an image, specifically, an input channel of the network model includes a first branch inlet and a second branch inlet, the image is input into the first branch inlet, the network model identifies a type of the power equipment in the image and outputs a first result, the image is input into the second branch inlet, the network model sets three prediction frames to extract the position of the power equipment and outputs a second result, and the first result and the second result are spliced to extract the power equipment in the image. If the power equipment in the image is extracted, the number of pixel points occupied by the power equipment is obtained, the ratio of the number of pixel points occupied by the power equipment to the number of total pixel points of the image is calculated, the size of the power equipment in the image is determined, if the ratio is within a preset threshold range, the image pixel points are represented by two-position coordinates, the position of the power equipment in the image is obtained, the threshold range is 0.3-0.6 in the embodiment, if the position of the power equipment accords with a preset distance, the edge pixel points of the power equipment describe the shape of the power equipment, the similarity between the shape of the power equipment in the image and the preset template is calculated, if the position of the power equipment accords with the preset distance, the nearest distance between the center point of the power equipment and the image edge is calculated, if the calculated distance L meets L and is more than or equal to 0.5S+0.1M, the preset distance is met, S represents the side length of the power equipment, the similarity between the power equipment and the power equipment is judged to be the same as the image in the preset template, in the embodiment, the similarity between the power equipment and the power and the image can be judged to be the image after the similarity is more than 0.7, the image can be obtained again, and the analysis condition is not met.
Based on the power image quality analysis model, the specific process of performing unified reading analysis on the standard image set by using OpenCV computer vision software is as follows:
storing the standard image set under a unified directory, and numbering sample images in the standard image set according to the sequence;
Sequentially reading sample images based on sample image numbers, performing feature analysis, and classifying the sample images according to analysis results to obtain sample classification sets;
Numbering the sample classification sets, defining the number of sample images of each sample classification set, and stopping putting samples into the sample classification sets when the number of sample images reaches a specified value;
And taking the image features corresponding to the final classification set of the sample image as a reading analysis result.
In this embodiment, unified reading analysis is performed on the standard image set through OpenCV computer vision software, so as to obtain a reading analysis result. The standard image sets are stored under a unified directory, the storage range of the sample images is limited, the standard image sets are conveniently read by OpenCV computer vision software, then the sample images in the standard image sets are numbered according to the sequence, so that analysis results correspond to the sample images one by one, the subsequent statistics of the sample images is facilitated, the sample images are subjected to analysis results to obtain sample classification sets, each sample classification set corresponds to one image feature, the number of the sample images in the sample classification set is specified, when the number of the sample images reaches a specified value, the sample is stopped from being put into the sample classification set, and the image features corresponding to the finally obtained sample classification set are used as reading analysis results.
Based on the method, the image quality analysis result comprises whether the image comprises power equipment, whether the power equipment in the image is complete, the power equipment state in the image and the power equipment type in the image.
Further, the determining whether the image to be detected meets the preset quality standard includes:
Reading a quality analysis result of an image to be detected, and judging whether the image analysis result comprises all information;
if the image analysis result does not include all the image information, re-acquiring the image to be detected;
if the image analysis result comprises all the image information, judging that the image information accords with a preset standard;
if the image information does not accord with the preset standard, re-acquiring the image to be detected;
If the image information meets the preset standard, inputting the image to be detected into a cloud server for fault detection of low-voltage transformer area metering equipment in the power industry, and sending a fault analysis result to the mobile terminal.
In this embodiment, the subsequent operation is determined by determining whether the image to be detected meets the preset quality standard. Specifically, a quality analysis result of an image to be detected is read, and whether the image analysis result comprises all image information is judged, wherein the image quality analysis result comprises whether the image comprises power equipment, whether the power equipment in the image is complete, the power equipment state in the image and the power equipment type in the image. If the quality analysis result of the image to be detected does not contain all the image information, the image to be detected is re-acquired, otherwise, whether the image information of the image to be detected meets the preset standard is judged, in the embodiment, whether the type of the middle power equipment is manually judged, whether the defect exists in the image power equipment or not is judged, and whether the power equipment needs maintenance or not is judged. And if the image information of the image to be detected does not meet the preset standard, re-acquiring the image to be detected, otherwise, inputting the image to be detected into a cloud server for fault detection of low-voltage transformer area metering equipment in the power industry, and sending a fault analysis result to the mobile terminal.
The embodiment of the invention provides an image verification system of low-voltage transformer area metering equipment in the power industry, which comprises the following components:
the image acquisition module is used for acquiring an image to be detected of low-voltage transformer area metering equipment in the power industry;
the image analysis module is used for inputting an image to be detected of the low-voltage transformer area metering equipment in the power industry into the power image quality analysis model for quality analysis and outputting an image quality analysis result;
the result detection module is used for judging whether the image to be detected accords with a preset quality standard or not based on an image quality analysis result;
and if the quality standard is met, carrying out cloud identification on the image to be detected.
The image verification system for low-voltage area metering equipment in the power industry provided by the embodiment and the image verification method embodiment for low-voltage area metering equipment in the power industry provided by the embodiment belong to the same conception, and detailed implementation processes of the image verification system are detailed in the method embodiment and are not repeated here.
The embodiment of the invention provides a terminal, which comprises a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to realize the image checking method of the low-voltage station metering equipment in the power industry.
The terminal includes at least one processor, memory, a user interface, and at least one network interface. The various components in the terminal are coupled together by a bus system. It will be appreciated that a bus system is used to enable connected communications between these components.
The embodiment of the invention provides a computer readable storage medium, at least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to realize the image verification method of the low-voltage station metering equipment in the power industry.
It will be appreciated that the memory can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. The memory in the embodiment of the invention can store data to support the operation of the terminal. Examples of such data include any computer programs for operating on the terminal, such as an operating system and application programs. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application may comprise various applications.
The present invention is not limited to the above-described specific embodiments, and various modifications may be made by those skilled in the art without inventive effort from the above-described concepts, and are within the scope of the present invention.