Matlab 中的实时网络摄像头处理
谁能给我指出一些在 Matlab 中进行实时网络摄像头处理的示例?网上有一些关于如何从网络摄像头获取图片,然后处理该图片的教程/示例,但我正在研究对来自网络摄像头的视频源的实时操作。
Can anyone point me in the direction of some examples of live webcam processing in Matlab? There are some tutorials/examples online on how to acquire a picture from a webcam, and then process that picture, but I'm looking at real-time manipulation of the video feed from the webcam.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
http://www.mathworks.com /videos/solving-a-sudoku-puzzle-using-a-webcam-68773.html
[编辑 - 更新了视频链接]
http://www.mathworks.com/videos/solving-a-sudoku-puzzle-using-a-webcam-68773.html
[Edit - updated the link to the video]
Ashish 给出的示例确实涵盖了您需要了解的所有内容。
这是此示例的子集,仅包含视频内容。基本上你应该做的是一个带有 try catch 的循环。该循环从 obj(视频对象)获取帧,通过直接在 imshow 画布上“绘画”来处理和显示它。
当用户关闭图形窗口时,会出现 try-catch,导致触发 catch 子句的异常 - 停止捕获并释放相机(以便其他程序可以使用它)
The example Ashish gave does cover everything you need to know.
Here is a subset of this example with just the video stuff. Basically what you should do is a loop with a try catch. The loop gets frames from obj (the video object), processes and displays it by 'painting' straight on an imshow canvas.
The try-catch is there for when the user closes the figure window, causing an exception which triggers the catch clause - stopping the capture and releasing the camera (so other programs could use it)