Skip to content
MathWorks - Mobile View
  • Sign In to Your MathWorks AccountSe connecter
  • Access your MathWorks Account
    • Mon compte
    • Mon profil
    • Mes licences
    • Se déconnecter
  • Produits
  • Solutions
  • Le monde académique
  • Support
  • Communauté
  • Événements
  • Obtenir MATLAB
MathWorks
  • Produits
  • Solutions
  • Le monde académique
  • Support
  • Communauté
  • Événements
  • Obtenir MATLAB
  • Sign In to Your MathWorks AccountSe connecter
  • Access your MathWorks Account
    • Mon compte
    • Mon profil
    • Mes licences
    • Se déconnecter

Vidéos et webinars

  • MathWorks
  • Vidéos
  • Vidéos
  • Recherche
  • Vidéos
  • Recherche
  • Contactez l'équipe commerciale
  • Version d'essai
2:22 Video length is 2:22.
  • Description
  • Full Transcript
  • Related Resources

Using USB Webcams with MATLAB Online

Get started using USB webcams with MATLAB Online™. Set up a USB webcam in your web browser and discover the different features MATLAB Online offers for USB webcams. Perform basic tasks such as taking single images and video. Implement an object classifier using a deep learning neural network to classify everyday objects using the USB webcam and MATLAB Online.

Download the code used in this video.

Using a USB webcam is the easiest way to get live images and video into MATLAB Online for fast and convenient image processing. You can access your USB webcam and use MATLAB Online from Google Chrome without installing any software.  

 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. 

MATLAB Online

Bridging Wireless Communications Design and Testing with MATLAB

Read white paper

Feedback

Up Next:

2:01
Hochschule RheinMain Teaches Modeling and Simulation in a...

Related Videos:

1:58
Online Parameter Estimation Commands
4:55
Online Fault Detection for a DC Motor
2:39
Online Parameter Estimation with Simulink
45:44
Online Parameter Estimation and Adaptive Control
MathWorks - Domain Selector

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

  • Switzerland (English)
  • Switzerland (Deutsch)
  • Switzerland (Français)
  • 中国 (简体中文)
  • 中国 (English)

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

  • Contactez l'équipe commerciale
  • Version d'essai

MathWorks

Accelerating the pace of engineering and science

MathWorks est le leader mondial des logiciels de calcul mathématique pour les ingénieurs et les scientifiques.

Découvrir…

Découvrir les produits

  • MATLAB
  • Simulink
  • Version étudiante
  • Support Hardware
  • File Exchange

Essayer ou acheter

  • Téléchargements
  • Version d'essai
  • Contacter un commercial
  • Tarifs et licences
  • Comment acheter

Se former

  • Documentation
  • Tutoriels
  • Exemples
  • Vidéos et webinars
  • Formation

Obtenir de l'aide

  • Aide à l'installation
  • MATLAB Answers
  • Services de consulting
  • Centre de gestion des licences
  • Contacter le support technique

La société

  • Offres d'emploi
  • Actualités
  • Mission sociale
  • Témoignages clients
  • La société
  • Select a Web Site United States
  • Trust Center
  • Marques déposées
  • Charte de confidentialité
  • Lutte anti-piratage
  • État des applications

© 1994-2022 The MathWorks, Inc.

  • Facebook
  • Twitter
  • Instagram
  • YouTube
  • LinkedIn
  • RSS

Rejoignez la conversation