马修·谢,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.
Next, in this demo, each frame of the video is classified using the pretrained neural network GoogLeNet. Here, you can see the label that is assigned to each object, along with the score, which tells us how confident the classifier is. As you can see, the classifier does a pretty good job at labeling these objects, such as coffee mug, orange, pen, mouse, and keyboard.
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.
您还可以选择从下面的列表中的网站:
选择最佳的网站性能的中国网站(在中国或英文)。其他MathWorks的国家网站都没有从您的位置访问进行了优化。