The invention discloses a method and
system for generating a visual special effect video, and relates to the technical field of video generation, and the method comprises the steps: carrying out the collection and preprocessing of multi-
modal data, synchronously collecting an RGB video, a
depth map and environment illumination data, and generating a registered 3D
point cloud; carrying out time-space domain combined motion compensation image matting, and extracting a moving object Alpha
mask; by means of edge purification of self-adaptive illumination separation, illumination
pollution and edge color overflow of a green screen scene are eliminated; the multi-scale transparency
estimation network outputs a transparency graph; dynamic special effect synthesis and output guarantee video fluency; and the special effect video is intelligently recommended, and a self-adaptive output strategy is realized. The image matting and edge
processing precision is improved, the transparency
estimation and special effect synthesis effect is enhanced, intelligent recommendation and resource optimization are realized, and the defects in dynamic scene
processing in the prior art are overcome.