Movidius 2 & Raspberry Pi 3 B/B+ ๐Ÿ“ท

Nonpavit Detbun ๐Ÿ”‹๐Ÿบ
3 min readMar 25, 2019

๐ŸŽต install and test CNN ๐ŸŽฎ

โ—๏ธ Default Intel Movidius Neural Compute Stick 2 donโ€™t support ARM CPU

Hardware ๐Ÿš€

  • Raspberry Pi 3 B/B+
  • SD Card 16/32 GB Class 10
  • Camera Webcam 720/1080 p
  • Intel Movidius Neural Compute Stick 2

Software ๐Ÿ’ป

Knowledge required

  • Linux Command
  • Python3

โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€”

Install the Package

  • Open the Terminal

Set the Environment Variables

Edit .bashrc add env

Save and close the file

  • Crtl + X
  • Y
  • Enter

Close terminal and Open a new terminal

  • You will find the word
[setupvars.sh] OpenVINO environment initialized

Connect Intel Movidius Neural Compute Stick 2 to RPi 3

Add USB Rules

Log out and log in for it to take effect.

Build and Run Object Detection Sample

Edit /etc/dphys-swapfile

Save and close the file

  • Crtl + X
  • Y
  • Enter

Completed when it reaches 100%

Test install

Connect Camera Webcam to RPi 3

Run Face Detection Model Using OpenCV* API

Edit openvino_fd_myriad.py

Save and close the file

  • Crtl + X
  • Y
  • Enter

Real Time Camera

Press q to quit program

Build All Sample

Raspberry Pi 3 B/B+ have CPU 4 Core but default file build_samples.sh support CPU Intel 8 Core.

Edit build_samples.sh for Raspberry Pi 3 B/B+

Save and close the file

  • Crtl + X
  • Y
  • Enter

โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€”

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Nonpavit Detbun ๐Ÿ”‹๐Ÿบ
Nonpavit Detbun ๐Ÿ”‹๐Ÿบ

Written by Nonpavit Detbun ๐Ÿ”‹๐Ÿบ

Iโ€™m Electrical Engineering. ๐Ÿ“Ÿ I have an interest in Web App, Mobile App, IoT and Microcontroller ๐Ÿง

Responses (1)

Write a response