The invention discloses a real-time stitching method for a high-definition video. The method mainly comprises the following steps of synchronous
video decoding, initialization, frame-by-frame stitching and the like. Firstly, a high-definition original video of a
network camera is collected, and the video is synchronously decoded. For a first frame of
video image, the initialization is carried outand includes the steps of video registration based on sub-regions, finding of an optimal stitching line set, generation of a look-up table and the like. After the initialization is completed, the frame-by-frame stitching is carried out and includes the steps of
coordinate mapping of video images, detection of a moving object, stitching line update,
video fusion and the like, and finally a stitchedvideo is output. In addition, a parallelization strategy is adopted for each step in
video decoding and frame-by-frame stitching stages. According to the method, the real-time requirement of high-definition
video stitching can be met, and a stitching
frame rate is not less than 30 fps for a double-path 720P video; and meanwhile, the phenomena of
ghosting, blurring,
exposure inconsistence and thelike in the stitched video are avoided.