简体   繁体   English

如何从没有重叠帧的视频帧创建全景图像?

[英]How to create a panorama image from video frames w/o overlapping frames?

I have a sliding video files and I want to create a panorama image from this video's frame.我有一个滑动视频文件,我想从这个视频的帧创建一个全景图像。

In order to do that I can save each frame from a video file and create such image.为此,我可以保存视频文件中的每一帧并创建这样的图像。 But the issue is, I want to bypass the overlapping video frames (the adjacent frames).但问题是,我想绕过重叠的视频帧(相邻帧)。 How can I achieve that?我怎样才能做到这一点? What are the best approach can be applied for such case?对于这种情况,最好的方法是什么? Feature matching based algorithm or any state-of-the-art approach?基于特征匹配的算法或任何最先进的方法?

Any suggestion or pointer would be highly appreciated.任何建议或指示将不胜感激。 Thanks.谢谢。

Regarding overlapping frames, you can check frames similarity based on some features (for example image histogram, maybe in specific image areas as borders and center)关于重叠帧,你可以根据一些特征检查帧的相似性(例如图像直方图,可能在特定图像区域作为边界和中心)

For the panorama creation, you can take a look to the Stitcher class in Opencv全景图制作可以看Opencv中的Stitcher class

stitcher API 订书机 API

code sample 代码示例

It looks quite simple看起来很简单

 stitcher = cv.Stitcher.create(args.mode)
 status, pano = stitcher.stitch(imgs)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM