MathWorks - Mobile View
  • Melden Sie sich bei Ihrem MathWorks Konto anMelden Sie sich bei Ihrem MathWorks Konto an
  • Access your MathWorks Account
    • Eigener Account
    • Mein Community Profil
    • Lizenz zuordnen
    • Abmelden
  • Produkte
  • Lösungen
  • Forschung und Lehre
  • Support
  • Community
  • Veranstaltungen
  • MATLAB erhalten
MathWorks
  • Produkte
  • Lösungen
  • Forschung und Lehre
  • Support
  • Community
  • Veranstaltungen
  • MATLAB erhalten
  • Melden Sie sich bei Ihrem MathWorks Konto anMelden Sie sich bei Ihrem MathWorks Konto an
  • Access your MathWorks Account
    • Eigener Account
    • Mein Community Profil
    • Lizenz zuordnen
    • Abmelden

Videos und Webinare

  • MathWorks
  • Videos
  • Videos Homepage
  • Suche
  • Videos Homepage
  • Suche
  • Vertrieb kontaktieren
  • Testsoftware
  Register to watch video
  • Description
  • Full Transcript
  • Related Resources

Detect People with Raspberry Pi and MATLAB Online

Matthew Chea, MathWorks

Learn how to use your Raspberry Pi™ with MATLAB Online™ to detect upright people. Remotely access your Raspberry Pi from anywhere that has an Internet connection. Connect to your Raspberry Pi camera module and use the peopleDetectorACF and the detect() method to return bounding boxes and scores for the people detected in the live video.

Download the code used in this video.

In this demo, I will show you how to detect people from a Pi camera using a Raspberry Pi™ and MATLAB Online™.

If you haven’t set up your Raspberry Pi in MATLAB Online, please refer to the documentation to learn how.

Use the command raspilist to see the online Raspberry Pis. You need to connect to your board using the function raspi(). You can either specify a Raspberry Pi or use the default which connects to the most recent board.

Here, I’m using a Raspberry Pi camera Module V2, which is connected to the Pi using the ribbon cable. Connect to it by using the function cameraboard(). Here, I’m using the resolution 640 by 480.

Next, you can load the people detector. This detector was trained using a person data set. It detects upright people using aggregate channel features.

Here you can use a for loop to repeatedly take images using the snapshot() function, and use the detect() function to find the people in the image and store the results as bounding boxes and scores.

Now, you can insert these results into the image using insertObjectAnnotation() and then use imshow() to display the image to the screen.

Click Run and a figure on the right will show up.

As you can see, as people walk into frame, they are highlighted by the yellow bounding boxes along with a score at the top of the box.

We’ve successfully detected people from the Raspberry Pi camera using MATLAB Online.

For more information, please visit the documentation at mathworks.com.

Working with Raspberry Pi Camera Board

Learn More

MATLAB Online
Getting Started with MATLAB Support Package for Raspberry Pi
Camera board
Related Information
Connecting to Raspberry Pi in MATLAB Online

Feedback

Up Next:

27:58
How MATLAB Did the Work of 40 People and Accelerated...

Related Videos:

34:37
Collect and Analyze Data Using MATLAB and Raspberry Pi
5:42
Using MATLAB and Raspberry Pi with an I2C Sensor
6:45
Using MATLAB and Raspberry Pi with an Accelerometer
6:33
Using MATLAB with a Raspberry Pi Camera Board
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: .

Select web site

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

  • Vertrieb kontaktieren
  • Testsoftware

Produkte

  • MATLAB
  • Simulink
  • Software für Studierende
  • Hardware-Unterstützung
  • File Exchange

Testen oder Kaufen

  • Downloads
  • Testsoftware
  • Vertrieb kontaktieren
  • Preise und Lizenzierung
  • Store

Lernen

  • Dokumentation
  • Tutorials
  • Beispiele
  • Videos und Webinare
  • Schulungen

Support

  • Hilfe zur Installation
  • Antworten
  • Consulting
  • License Center
  • Support kontaktieren

Über MathWorks

  • Jobs & Karriere
  • Newsroom
  • Social Mission
  • Vertrieb kontaktieren
  • Über MathWorks

MathWorks

Accelerating the pace of engineering and science

MathWorks ist der führende Entwickler von Software für mathematische Berechnungen für Ingenieure und Wissenschaftler.

Entdecken Sie…

  • Select a Web Site United States
  • Patente
  • Handelsmarken
  • Datenschutz
  • Datendiebstahl verhindern
  • Status von Anwendungen

© 1994-2021 The MathWorks, Inc.

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

Folgen Sie uns