The invention discloses a
video stitching method and device based on an embedded platform, and the method comprises the steps: collecting a video
stream with an overlapping region through two cameras, carrying out the
processing of the first frame data on the embedded platform, obtaining a
homography matrix, and calculating the overlapping region; determining a
suture line by using an optimal
suture line algorithm, and performing
color correction and fusion on the first frame by using an optimized
histogram matching method and a fade-in and fade-out method; detecting a moving object by using a
frame difference method, setting a current frame as an updated frame, an updated
suture line and a
color correction function when the moving object passes through the vicinity of the suture line, avoiding
ghosting and blurring, and periodically updating a
homography matrix in order to eliminate errors; and generating
pixel mapping from the data of the first frame and the updated frame, storing a
color correction function, directly performing
coordinate mapping and color correction on other frames, accelerating a fusion process by using hardware, and finally displaying a spliced video on a
display device in real time. The splicing quality is improved while the real-time performance is ensured, and the spliced image is quickly obtained and displayed on the
display device in real time.