Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要知道如何在C# 中使用emgucv 2.1.0.0加载视频文件。我只是需要一些指导。我还需要一些关于如何使用 emgucv API 的指导(我有一个安装附带的文档),所以当我可以在 API 中找到它时,我不必继续提问(注意:例如,我经历了你管上的一个视频,学习如何使用 java API,现在使用它很舒服,找不到 emgucv 的视频)。例如,我找到了不同事物的方法,但我不知道将它们应用到代码中。
也许一种方法以及如何使用它可能会有所帮助。
非常感谢
假设您已正确导入 Emgu DLL,请使用
Capture capture = new Capture("filename");
然后你可以使用它从中抓取帧
Image<Bgr, byte> img = capture.QueryFrame();
您可以使用 ImageViewer 类查看图像:
ImageViewer viewer = new ImageViewer(); viewer.Image = img; viewer.ShowDialog();