Disclosure of Invention
The embodiment of the invention provides a monitoring method and a monitoring device of a power grid system and a computer readable storage medium, which at least solve the technical problem that a monitoring result cannot reach an expected result due to a single monitoring means for field constructors in the related technology.
According to an aspect of an embodiment of the present invention, there is provided a monitoring method for a power grid system, including: collecting original site images in a power construction monitoring site; performing feature extraction on the original site image to obtain a feature image in the original site image, wherein the feature image comprises a target object in the electric power construction monitoring site; extracting a plurality of candidate regions in the characteristic image; predicting a category of a target object in the plurality of candidate regions; performing window fusion on partial candidate regions in the multiple candidate regions based on the prediction result to obtain a fused target window, wherein the partial candidate regions contain the same detection target; and determining the category of the target object in the target window, and monitoring the target object based on the category of the target object.
Optionally, acquiring an original site image in the power construction monitoring site includes: performing area division on the electric power construction monitoring site to obtain a safe area and an unsafe area in the electric power construction monitoring site, wherein the safe area is an area where the target object can exist, and the unsafe area is an area where the target object cannot exist; triggering an image acquisition device in the unsafe area to acquire the original live image.
Optionally, performing feature extraction on the original live image to obtain a feature image in the original live image, including: inputting the original live image into a target detection model, and processing the original live image by using the target detection model to obtain a feature image in the original live image, wherein the target detection model is obtained by using a plurality of groups of training data through machine learning training, and each group of training data in the plurality of groups of training data comprises: historical original live images and historical feature images corresponding to the historical original live images.
Optionally, extracting a plurality of candidate regions in the feature image includes: inputting the feature images into a regional suggestion network model to obtain the candidate regions based on the regional suggestion network model, wherein the regional suggestion model is obtained by machine learning training using a plurality of sets of training data, and each set of training data in the plurality of sets of training data includes: the image processing device comprises a historical feature image and a historical candidate region corresponding to the historical feature image.
Optionally, each of the plurality of candidate regions includes location information of the candidate region and an attribute score of the candidate region.
Optionally, predicting a category of a target object in the plurality of candidate regions comprises: and predicting a candidate window corresponding to each candidate region based on the attribute score of each candidate region in the candidate regions to obtain the category of the target object in the candidate window corresponding to the candidate regions.
According to another aspect of the embodiments of the present invention, there is provided a monitoring apparatus for a power grid system, including: the acquisition module is used for acquiring original site images in the power construction monitoring site; the first extraction module is used for extracting features of the original site image to obtain a feature image in the original site image, wherein the feature image comprises a target object in the electric power construction monitoring site; the second extraction module is used for extracting a plurality of candidate regions in the characteristic image; a prediction module to predict a category of a target object in the plurality of candidate regions; the fusion module is used for carrying out window fusion on partial candidate regions in the candidate regions based on the prediction result to obtain a fused target window, wherein the partial candidate regions comprise the same detection target; and the determining module is used for determining the category of the target object in the target window and monitoring the target object based on the category of the target object.
Optionally, the acquisition module includes: the dividing unit is used for performing region division on the electric power construction monitoring site to obtain a safe region and an unsafe region in the electric power construction monitoring site, wherein the safe region is a region where the target object can exist, and the unsafe region is a region where the target object cannot exist; and the triggering unit is used for triggering the image acquisition equipment in the non-safety area to acquire the original field image.
Optionally, the first extraction module includes: a first input unit, configured to input the original live image into a target detection model, so as to process the original live image by using the target detection model, so as to obtain a feature image in the original live image, where the target detection model is obtained by machine learning training using multiple sets of training data, and each set of training data in the multiple sets of training data includes: historical original live images and historical feature images corresponding to the historical original live images.
Optionally, the second extraction module includes: a second input unit, configured to input the feature image into a regional suggestion network model to obtain the candidate regions based on the regional suggestion network model, where the regional suggestion model is obtained through machine learning training using multiple sets of training data, and each of the multiple sets of training data includes: the image processing device comprises a historical feature image and a historical candidate region corresponding to the historical feature image.
Optionally, each of the plurality of candidate regions includes location information of the candidate region and an attribute score of the candidate region.
Optionally, the prediction module includes: and the predicting unit is used for predicting the candidate window corresponding to each candidate region based on the attribute score of each candidate region in the candidate regions to obtain the category of the target object in the candidate window corresponding to the candidate regions.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is executed by a processor, the computer-readable storage medium controls an apparatus to execute the monitoring method for a power grid system according to any one of the above descriptions.
According to another aspect of the embodiment of the present invention, there is further provided a processor, configured to execute a computer program, where the computer program executes to perform the monitoring method for the power grid system according to any one of the above descriptions.
In the embodiment of the invention, the original site image in the power construction monitoring site is collected; extracting features of the original site image to obtain a feature image in the original site image, wherein the feature image comprises a target object in the electric power construction monitoring site; extracting a plurality of candidate regions in the characteristic image; predicting a category of a target object in a plurality of candidate regions; performing window fusion on partial candidate regions in the multiple candidate regions based on the prediction result to obtain a fused target window, wherein the partial candidate regions comprise the same detection target; and determining the category of the target object in the target window, and monitoring the target object based on the category of the target object. By the monitoring method of the power grid system, the purpose of monitoring the target object based on the prediction result of predicting the target object type in the candidate area in the original site characteristic image is achieved, the technical effect of improving the target tracking and monitoring capability of remote monitoring is achieved, and the technical problem that the monitoring result cannot reach the expectation due to the fact that the monitoring means for site constructors in the related technology is single is solved.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided a method embodiment of a monitoring method for a power grid system, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of a monitoring method of a power grid system according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
and S102, acquiring an original site image in the power construction monitoring site.
Optionally, in the above step, a common camera or a 3D camera is used to monitor the construction site, so as to acquire an original construction image in the site.
And step S104, performing feature extraction on the original site image to obtain a feature image in the original site image, wherein the feature image comprises a target object in the electric power construction monitoring site.
Optionally, in the above step, feature extraction is performed on the original live image acquired in step S102, so as to obtain a feature image in the original live image, where the feature image includes a target object to be monitored (e.g., a constructor, a construction operation device, etc.).
In step S106, a plurality of candidate regions in the feature image are extracted.
Optionally, in the above step, the obtained feature image is input into an RPN (Region pro-potential Network) in a trained detection model, so as to obtain a plurality of candidate regions, which is convenient for further processing of the target object. The RPN is a network layer used for generating a candidate area in machine learning.
Step S108, predicting the category of the target object in the plurality of candidate areas.
Optionally, in the above step, the obtained target category in the candidate region is predicted, and the score is performed after the predicted category is predicted, where a higher score represents a higher category similarity in the machine algorithm recognition.
And step S110, performing window fusion on partial candidate regions in the multiple candidate regions based on the prediction result to obtain a fused target window, wherein the partial candidate regions comprise the same detection target.
Fig. 2 is a schematic diagram of the effect of candidate regions after window fusion according to an embodiment of the present invention, and as shown in fig. 2, the left diagram is a feature image of 4 candidate regions with the highest score in the constructor category candidate regions obtained through prediction of the image, and a right diagram, that is, an effect diagram after window fusion, can be obtained after processing by a predetermined algorithm. Note that, a Non-maximum suppression algorithm (NMS) is commonly used as the predetermined algorithm.
And step S112, determining the category of the target object in the target window, and monitoring the target object based on the category of the target object.
As can be seen from the above, in the embodiment of the present invention, the original site image in the power construction monitoring site may be collected first; then, feature extraction is carried out on the original site image to obtain a feature image in the original site image, wherein the feature image comprises a target object in the power construction monitoring site; then extracting a plurality of candidate regions in the characteristic image; then predicting the category of the target object in the candidate areas; then, window fusion is carried out on partial candidate areas in the candidate areas based on the prediction result to obtain a fused target window, wherein the partial candidate areas comprise the same detection target; and finally, determining the category of the target object in the target window, and monitoring the target object based on the category of the target object. By the monitoring method of the power grid system, the purpose of monitoring the target object based on the prediction result of predicting the target object type in the candidate area in the original site characteristic image is achieved, the technical effect of improving the target tracking and monitoring capability of remote monitoring is achieved, and the technical problem that the monitoring result cannot reach the expectation due to the fact that the monitoring means for site constructors in the related technology is single is solved.
As an alternative embodiment, the method for collecting original site images in the power construction monitoring site comprises the following steps: the method comprises the steps of performing region division on an electric power construction monitoring site to obtain a safe region and an unsafe region in the electric power construction monitoring site, wherein the safe region is a region where a target object can exist, and the unsafe region is a region where the target object cannot exist; triggering an image acquisition device in the non-safety area to acquire the original live image.
In the above optional embodiment, the collected images in the construction site are clustered and classified for the safe area and the unsafe area, and in the process of monitoring the target object, if the target object is always in the safe area, a safety alarm is not triggered; if the target object moves into the non-safety area, a safety alarm is triggered to prompt the target object to return to the safety area.
Furthermore, in the monitoring process, the types of the target objects may be divided, and after the regions are divided, the permissions of different portions are set, the permissions of the regions in which the target objects of different levels can move are different, and if the target objects move to a region higher than their permissions, operations such as triggering an alarm may also be performed.
As an alternative embodiment, performing feature extraction on the original live image to obtain a feature image in the original live image includes: inputting an original field image into a target detection model, processing the original field image by using the target detection model to obtain a characteristic image in the original field image, wherein the target detection model is obtained by using a plurality of groups of training data through machine learning training, and each group of training data in the plurality of groups of training data comprises: historical raw live images and historical feature images corresponding to the historical raw live images.
In the above-mentioned alternative embodiment, the original field image (e.g. the construction field image) is first input into the target detection model, and the target detection model extracts the feature information in the original field image, for example, extracts the target object therein, such as the constructor.
As an alternative embodiment, extracting a plurality of candidate regions in a feature image includes: inputting the feature images into a regional suggestion network model to obtain a plurality of candidate regions based on the regional suggestion network model, wherein the regional suggestion model is obtained by machine learning training using a plurality of sets of training data, and each set of training data in the plurality of sets of training data comprises: the image processing apparatus includes a history feature image and a history candidate region corresponding to the history feature image.
In the above optional embodiment, the feature image is input into the region suggestion network model to obtain a plurality of candidate regions, where the region suggestion model is used to perform frame selection on a plurality of features in the feature image by using a candidate frame and then perform more accurate candidate frame determination by using a training model.
As an alternative embodiment, each of the plurality of candidate regions includes the position information of the candidate region and the attribute score of the candidate region.
In the above alternative embodiment, each candidate region includes the position information of the current central point, the target category selected by the frame, and the corresponding category similarity score (i.e., attribute score), so that the target detection effect can be visually reflected.
As an alternative embodiment, predicting the category of the target object in the plurality of candidate regions includes: and predicting the candidate window corresponding to each candidate region based on the attribute score of each candidate region in the candidate regions to obtain the category of the target object in the candidate window corresponding to the candidate regions.
Fig. 3 is a flowchart of a construction site monitoring system according to an embodiment of the present invention, and as shown in fig. 3, in the embodiment of the present invention, after a site image of an electric power construction monitoring environment is input into a target detection model, features are extracted through a convolutional neural network, and then a set of candidate regions is obtained through a region suggestion network, where each candidate region includes position information of the candidate region and a score indicating whether the candidate region belongs to a foreground or a background. Then, the candidate window of the suspected target needs to be further predicted according to the category score of the candidate window, whether the candidate window belongs to a fence, a tripod, a signboard or a background is judged, and under the condition that the position information of each candidate area and the category score of the candidate area are known, the position information of the candidate area on the feature map can be obtained through mapping according to the position information of the candidate area on the original image and the position information of the candidate area on the feature map through the position mapping relation of the original image and the feature map, and then the feature map of the candidate area is obtained.
As can be seen from the above, in the embodiment of the present invention, the construction site image acquisition, the image processing, the feature extraction, and the classification of the target object are performed on the electric power construction site, the intelligent image processing technology is adopted to design the electric power construction site video monitoring system, the target tracking and identification on the electric power construction site are realized under the complex environmental condition, the remote monitoring and the real-time target tracking and detecting capability on the electric power construction site are improved, and the design of the electric power construction site video monitoring system is based on the image identification and the information processing, and the integrated information processing technology is combined to perform the target tracking and detecting of the remote monitoring on the electric power construction site, so that the positioning and detecting capability on the target is improved.
Example 2
According to another aspect of the embodiment of the present invention, there is also provided a monitoring apparatus for a power grid system, and fig. 4 is a schematic diagram of a monitoring method for a power grid system according to the embodiment of the present invention, as shown in fig. 4, including: an acquisition module 41, a first extraction module 43, a second extraction module 45, a prediction module 47, a fusion module 49, and a determination module 411. The following describes a monitoring device of the grid system.
And the acquisition module 41 is used for acquiring original site images in the power construction monitoring site.
The first extraction module 43 is configured to perform feature extraction on the original site image to obtain a feature image in the original site image, where the feature image includes a target object in the electric power construction monitoring site.
And a second extraction module 45, configured to extract a plurality of candidate regions in the feature image.
And the prediction module 47 is used for predicting the category of the target object in the candidate areas.
And a fusion module 49, configured to perform window fusion on a part of the candidate regions in the multiple candidate regions based on the prediction result to obtain a fused target window, where the part of the candidate regions includes the same detection target.
The determining module 411 is configured to determine a category of the target object in the target window, and monitor the target object based on the category of the target object.
It should be noted here that the above-mentioned acquisition module 41, first extraction module 43, second extraction module 45, prediction module 47, fusion module 49 and determination module 411 correspond to steps S102 to S112 in embodiment 1, and the above-mentioned modules are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the contents disclosed in embodiment 1. It should be noted that the modules described above as part of an apparatus may be implemented in a computer system such as a set of computer-executable instructions.
As can be seen from the above, in the embodiment of the present invention, the acquisition module 41 may be first used to acquire the original site image in the power construction monitoring site; then, a first extraction module 43 is used for extracting features of the original site image to obtain a feature image in the original site image, wherein the feature image comprises a target object in the electric power construction monitoring site; then, a second extraction module 45 is used for extracting a plurality of candidate regions in the characteristic image; then, the prediction module 47 is used for predicting the types of the target objects in the candidate areas; then, a fusion module 49 is used for carrying out window fusion on partial candidate regions in the multiple candidate regions based on the prediction result to obtain a fused target window, wherein the partial candidate regions comprise the same detection target; finally, the determining module 411 is used to determine the category of the target object in the target window and monitor the target object based on the category of the target object. The monitoring device of the power grid system achieves the purpose of monitoring the target object based on the prediction result of predicting the target object type in the candidate area in the original site characteristic image, thereby achieving the technical effect of improving the target tracking and monitoring capability of remote monitoring, and further solving the technical problem that the monitoring result cannot reach the expectation due to single monitoring means for site constructors in the related technology.
Optionally, the acquisition module comprises: the power construction monitoring system comprises a dividing unit, a monitoring unit and a monitoring unit, wherein the dividing unit is used for carrying out region division on a power construction monitoring site to obtain a safe region and an unsafe region in the power construction monitoring site, the safe region is a region where a target object can exist, and the unsafe region is a region where the target object cannot exist; and the triggering unit is used for triggering the image acquisition equipment in the non-safety area to acquire the original field image.
Optionally, the first extraction module includes: the system comprises a first input unit, a second input unit and a third input unit, wherein the first input unit is used for inputting an original field image into a target detection model so as to process the original field image by using the target detection model to obtain a feature image in the original field image, the target detection model is obtained by using a plurality of groups of training data through machine learning training, and each group of training data in the plurality of groups of training data comprises: historical raw live images and historical feature images corresponding to the historical raw live images.
Optionally, the second extraction module includes: a second input unit, configured to input the feature image into a regional suggestion network model to obtain a plurality of candidate regions based on the regional suggestion network model, where the regional suggestion model is obtained through machine learning training using a plurality of sets of training data, and each set of training data in the plurality of sets of training data includes: the image processing apparatus includes a history feature image and a history candidate region corresponding to the history feature image.
Optionally, each of the plurality of candidate regions includes location information of the candidate region and an attribute score of the candidate region.
Optionally, the prediction module comprises: and the predicting unit is used for predicting the candidate window corresponding to each candidate region based on the attribute score of each candidate region in the candidate regions to obtain the category of the target object in the candidate window corresponding to the candidate regions.
Example 3
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored computer program, wherein when the computer program is executed by a processor, the apparatus where the computer-readable storage medium is located is controlled to execute the monitoring method of the power grid system of any one of the above.
Example 4
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a computer program, where the computer program executes to perform the monitoring method for a power grid system according to any one of the foregoing methods.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.