Correlation verification method for positions of telemetering text primitives and equipment primitives of transformer substation
Technical Field
The invention relates to the technical field of image recognition, in particular to a method for verifying association between a telemetering text primitive and an equipment primitive position of a transformer substation.
Background
Along with the gradual improvement of the intelligent level of the national power grid, the flexibility of the operation and service modes of the national grid system is gradually improved, the resource optimization configuration in a wider range is realized, and the effect of a power grid visualization platform is highlighted.
However, at present, the graph G of the transformer substation is mainly formed by manually drawing the transformer substation station at the initial stage of building the transformer substation, which causes many errors between the remote-measurement monitoring information text primitives and the associated device primitives, and fails to manually identify such a graph error, which causes the transformer substation monitoring personnel to fail to obtain correct remote-measurement real-time information of the transformer substation device, thereby correctly judging the operation state of the transformer substation device and affecting the normal and stable operation of the transformer substation.
At present, in the prior art, a correlation verification method for the positions of a text primitive and an equipment primitive of telemetering monitoring information of a related transformer substation does not exist.
Disclosure of Invention
The invention aims to solve the technical problem of making up the defects of the prior art and provides a method for verifying association between a telemetering monitoring information text primitive and a related equipment primitive position of a transformer substation.
To solve the technical problems, the technical scheme of the invention is as follows:
a method for verifying correlation between telemetering text primitives and device primitives of a transformer substation sequentially comprises the following steps:
s1: traversing a G graphic file of the transformer substation, reading the text primitive data of the remote monitoring signal with a text label, and storing the text primitive data to a program for caching, wherein the text primitive data of the remote monitoring signal comprises the coordinate position of a remote primitive;
s2: traversing a G graphic file of the transformer substation, searching telemetering associated equipment graphic element attribute data which are associated with the telemetering monitoring signal text graphic element data and are consistent, and storing the data to a program cache, wherein the associated equipment graphic element attribute data comprise associated equipment graphic element coordinate positions; if the telemetering associated equipment primitive attribute data which are consistent with the telemetering monitoring signal text primitive data in association cannot be found, marking the telemetering associated equipment primitive attribute data as non-associated equipment primitive records;
s3: determining a standard position boundary value of a text primitive of the associated equipment telemetry monitoring signal: extracting associated equipment primitive coordinate position data, and calculating and determining a standard position boundary value set of a text primitive of a telemetering monitoring signal of associated equipment by taking the associated equipment primitive coordinate position as a center;
s4: dividing a standard position range of a text primitive of a telemetering monitoring signal of the associated equipment: dividing a standard position range of the associated equipment telemetering monitoring signal text primitive by taking the coordinate position of the associated equipment primitive as a center and taking the set of the standard position boundary values of the associated equipment telemetering monitoring signal text primitive determined in the step S3 as a boundary;
s5: and (3) verifying the positions of the text primitives and the associated equipment primitives of the telemetering monitoring signal: extracting the telemetering primitive coordinate position in the step S1, judging whether the telemetering primitive coordinate position is in the standard position range of the associated equipment telemetering monitoring signal text primitive, and if so, indicating that the association is correct; if not, associating errors;
s6: outputting a remote monitoring signal text primitive position correlation verification result: and outputting the associated equipment primitive in the step S2 and the verification result in the step S5.
Further, in step S1, the telemetry monitor signal text primitive data further includes telemetry primitive id data, telemetry primitive description, and telemetry primitive parent object id data.
Further, in step S2, the associated device primitive attribute data further includes associated device primitive id data and associated device primitive description.
Further, in step S2, searching for a connected device primitive id that is consistent with the correlation with the telemetry primitive parent object id, and if the connected device primitive id can be found, determining that the telemetry monitoring signal text primitive data is consistent with the correlation with the telemetry related device primitive attribute data; and if the primitive cannot be found, marking the primitive as a non-associated equipment primitive record.
Further, in step S3, setting X, Y offset position distance of the associated device primitive coordinate position corresponding to the telemetry primitive coordinate position with the associated device primitive coordinate position as a center, and calculating to determine a standard position boundary value set of the associated device telemetry monitoring signal text primitive; accordingly, the standard position range of the associated device telemetry monitoring signal text primitive marked off in step S4 is a rectangular range.
Further, the X, Y offset distance may be a default value or a manually entered value.
Further, the default value of the X, Y offset distance is 50 pixels.
The invention can achieve the following beneficial effects:
1) establishing an association relation between the telemetering monitoring information text primitive attribute data and the associated equipment primitive, and marking out a standard position range of the associated equipment telemetering monitoring signal text primitive according to the coordinate position of the associated equipment primitive; verifying the positions of the telemetering monitoring signal text primitive and the associated equipment primitive of the transformer substation by judging whether the coordinate position of the telemetering primitive is within the standard position range of the telemetering monitoring signal text primitive of the associated equipment;
2) according to the scheme, associated equipment primitives and positions thereof can be searched directly by extracting the attribute data of the telemetering monitoring information text primitives, so that the association check between the telemetering monitoring information text primitives and the equipment primitives positions of the substation is realized, the electric power G graphic specification does not need to be known, and graphic standardized adaptation processing does not need to be carried out in advance;
3) the problem of correlation and verification of the positions of the telemetering monitoring information text primitives and the associated equipment primitives of the transformer substation is well solved, and the accuracy of telemetering real-time information of the transformer substation equipment is ensured, so that the transformer substation can normally and stably operate.
Drawings
FIG. 1 is a flow chart of an embodiment of the present invention;
FIG. 2 is a diagram illustrating an example of an associated device primitive coordinate X, Y offset from a location distance input interface;
FIG. 3 is a graphical representation of a standard range of positions of text primitives for associated equipment telemetry monitor signals in accordance with an embodiment of the present invention;
FIG. 4 is a screenshot of an output demonstration of an association check result according to an embodiment of the present invention;
fig. 5 is a partially enlarged view of the WWW portion of fig. 4.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Examples
As shown in fig. 1, a method for verifying association between a telemetry text primitive and a device primitive position of a substation sequentially includes the following steps:
s1: traversing a G graphic file of the transformer substation, reading the text primitive data of the remote monitoring signal with a text label, and storing the data to a program cache, wherein the text primitive data of the remote monitoring signal comprises the id data of the remote monitoring primitive, the description of the remote monitoring primitive, the coordinate position of the remote monitoring primitive and the id data of a parent object of the remote monitoring primitive;
s2: traversing a G graphic file of the transformer substation, searching a connected device graphic element id which is consistent with the correlation of the telemetering graphic element parent object id, and if the connected device graphic element id can be found, judging that the telemetering monitoring signal text graphic element data is consistent with the correlation of the telemetering correlation device graphic element attribute data; storing the telemetering associated equipment primitive attribute data with consistent association to a program cache, wherein the associated equipment primitive attribute data comprises associated equipment primitive id data, associated equipment primitive description and associated equipment primitive coordinate positions; if the telemetering associated equipment primitive attribute data which are consistent with the telemetering monitoring signal text primitive data association cannot be found, marking the telemetering associated equipment primitive attribute data as a non-associated equipment primitive record;
s3: determining a standard position boundary value of a text primitive of the associated equipment telemetry monitoring signal: extracting associated equipment primitive coordinate position data, setting X, Y offset position distance of the associated equipment primitive coordinate position corresponding to the telemetering primitive coordinate position by taking the associated equipment primitive coordinate position as a center, wherein the default X, Y coordinate offset is 50 pixels, and certainly, the offset position can be manually input, as shown in fig. 2, so that the associated equipment telemetering monitoring signal text primitive standard position boundary value set is calculated and determined;
s4: dividing a standard position range of a text primitive of a telemetering monitoring signal of the associated equipment: dividing a standard position range of the text primitive of the telemetering and monitoring signal of the associated device by taking the coordinate position of the primitive of the associated device as a center and taking the boundary value set of the standard position of the text primitive of the telemetering and monitoring signal of the associated device determined in the step S3 as a boundary, wherein the standard position range is a rectangular range, such as a screenshot shown in FIG. 3;
s5: and (3) verifying the positions of the text primitives and the associated equipment primitives of the telemetering monitoring signal: extracting the telemetering primitive coordinate position in the step S1, judging whether the telemetering primitive coordinate position is in the standard position range of the associated equipment telemetering monitoring signal text primitive, and if so, indicating that the association is correct; if not, associating errors;
s6: outputting a remote monitoring signal text primitive position correlation verification result: and outputting the associated equipment primitive in the step S2 and the verification result in the step S5, and performing screen capture on the output result as shown in fig. 4 and 5.
The above description is only one embodiment of the present invention, and the scope of the present invention is not limited to the above embodiments, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the spirit of the present invention.