The invention relates to the technical field of intelligent monitoring of
power equipment, provides a
transformer substation defect data enhancement method and
system based on video generation of head and
tail frames, and solves the problems of sample scarcity and insufficient dynamic evolution
simulation. According to the main scheme, the method comprises the following steps: acquiring a substation equipment defect
tail frame image, and extracting a
depth map, an edge contour map and defect
mask labels; based on a
diffusion model of a
ControlNet multi-constraint mechanism, fusing the
depth map, the edge contour and the defect
mask to carry out first-frame repair on the
tail-frame image, and generating a defect-free first-frame image with consistent
visual angle, illumination and background; inputting the repaired first frame and the original tail frame into a
time sequence generation model, and generating a dynamic defect evolution
video sequence in combination with a text prompt constraint defect evolution path and apparent characteristics; and
time sequence coherent fragments are screened through
optical flow consistency detection, frame
insertion is carried out on the key stage to prolong the video duration, and finally high-quality defect enhancement data are generated. According to the scheme, the problems of sample scarcity and insufficient dynamic evolution
simulation are effectively solved.