The invention relates to an ultra-short-term photovoltaic power prediction method and device based on random
skyline video prediction, and a medium. The method comprises the following steps: S1, extracting color cloud picture feature points from a foundation cloud picture sequence; s2, carrying out
feature matching by adopting an FLANN
algorithm, carrying out filtering correction by adopting an IRANSAC
algorithm, and calculating a feature point coordinate
transformation matrix according to a cloud picture feature point coordinate matching condition of adjacent time points to obtain a cloud cluster movement track; s3, if the cloud layer displacement speed is greater than a set threshold value, turning to S4, otherwise, performing
image translation operation and then turning to S5; s4, adopting a SkyGPT model to carry out random
skyline video prediction, and generating a
skyline image sequence of a future set time period; s5, extracting the cloud cluster by adopting a threshold segmentation method, and constructing an
irradiation coefficient representing the
irradiance condition at the next moment; and S6, constructing an
incidence matrix of the image and the
irradiation coefficient, extracting
irradiance, and fusing image features and
irradiance features to obtain a photovoltaic power prediction result. Compared with the prior art, the method has the advantages of high prediction precision, high reliability and the like.