Code Monkey home page Code Monkey logo

movidius-face's Introduction

Movidius Face Detection

Demo video

Demo video

About movidius: https://developer.movidius.com/

Raspberry Pi Steps

Step1: Set up (PI + one Movidius stick)

(Skip caffe compared with offical document https://developer.movidius.com/start)

  1. Install vim and opencv:
sudo apt-get install vim
sudo apt-get install python-opencv
  1. Create workspace folder:
cd /home/pi
mkdir -p workspace
cd workspace
  1. Clone ncsdk from movidius:
git clone https://github.com/movidius/ncsdk.git
cd ncsdk
  1. Use vim or other editor to remove line "./install-ncsdk.sh" in file install.sh (about line 40).

  2. Run install script:

./install.sh
  1. Change folder:
cd /opt/movidius/NCSDK
  1. Use vim or other editor to remove line "check_and_install_caffe" in file install-ncsdk.sh (about line 535).

  2. Run script (takes about thirty minutes):

./install-ncsdk.sh
  1. Run example:
cd /home/pi/workspace/ncsdk/examples/tensorflow/inception_v1
python run.py

Step2: Our sample (PI + camera + two Movidius sticks)

  1. Use "sudo raspi-config" choose "interface option -> camera" to enable camera and then reboot
  2. Clone our repo:
cd /home/pi/workspace 
git clone https://github.com/ihere1/movidius-face
  1. Run (Enter 'q' in video window to exit program):
cd movidius-face/face_detect_pi/
python pi_two_devices.py

Ubuntu Steps

Step1: Set up (Ubuntu + one Movidius stick)

Follow https://developer.movidius.com/start install packages needed on your Ubuntu and RPI3.

Step2: Run our sample (Ubuntu + two Movidius stick)

  1. On Windows / Ubuntu machine with tensorflow, you can run python run_model.py to process pictures in run_model_input folder. Press any key to switch picture.
  2. On Linux with two sticks, you can run pi_two_devices.py to process pictures in two_devices_input folder. Press any key to switch picture.

More details:

Files in face_detect_pi folder: Files

Commands on Ubuntu to generate checkpoint folders and graph files: Commands on Ubuntu

movidius-face's People

Contributors

ihere1 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.