马修·谢,MathWorks公司
使用USB摄像头与MATLAB在线™上手。设置在Web浏览器中一个USB摄像头,发现不同功能的MATLAB的USB摄像头网上报价。执行基本任务,如采取单个图像和视频。用C语言实现了深刻的学习神经网络分类日常使用USB网络摄像头和MATLAB在线对象的对象分类。
下载代码在这个视频中使用。
使用USB网络摄像头,以获取实时图像和视频到MATLAB在线快速和方便的图像处理最简单的方法。您可以访问您的USB摄像头,并使用来自谷歌浏览器MATLAB在线无需安装任何软件。
All the functions in the MATLAB Support Package for USB Webcams are also available in MATLAB Online.
You can take single images, take multiple images to form a video, and you can even do real-time processing on a video.
Use the command webcamlist to see the webcams connected to the computer. Click Allow when your browser prompts you for permission to use your camera.
If you have multiple webcams connected, you can specify which webcam to connect to. You can see the properties of the webcam such as the name and resolution of the camera. To get a preview of what the camera sees, you can use the command: preview.
Now you can take a picture using your webcam. The snapshot function allows you to take a single image from the camera. I'm using the imshow() function to display the image on the screen.
By using the same snapshot function, you can take a video by taking multiple images in a loop. Here, I am using a FOR loop to take 30 images and display them to the screen.
接下来,在这个演示,视频的每一帧,使用神经网络pretrained GoogLeNet分类。 在这里,你可以看到分配给每个对象的标签,除了得分,这告诉我们如何自信的分类器。 正如你所看到的,在这些对象标签分类器是一个很好的工作,如咖啡杯,橙色,笔、鼠标、键盘。
Now you're ready to get started with your own projects in MATLAB Online using a USB Webcam.
For more information, please refer to the documentation on Webcam Support in MATLAB Online.