The invention belongs to the technical field of digital media
processing, and discloses an intelligent video repairing method and
system based on spatio-
temporal context reasoning. In order to solve the problems that in a large-area or continuous damage scene, the repairing efficiency is insufficient, dynamic inconsistency is caused due to the fact that single-frame repairing ignores time continuity, logic conflicts are caused by semantic deficiency and the like in a traditional method, a space-time multi-dimensional
information fusion and reasoning framework is constructed, and a space-time context reasoning
generative adversarial network (STCI-GAN) is provided. According to the method, a
reference frame is obtained through multi-scale time window sampling, space, time and semantic features are extracted and fused through a
semantic enhancement encoder, an initial repair frame is generated by adopting semantic constraint hierarchical repair, and finally, confrontation training optimization is performed through a multi-dimensional
discriminator, so that space authenticity, time continuity, motion rationality and semantic compliance are realized. According to the method, the repair efficiency of large-area damage and continuous frame shielding is improved, the dynamic content is ensured to be real and smooth and consistent with
semantics, and the method has high robustness and universality.