Giter Club home page Giter Club logo

ai4change-yolo-device's Introduction

AI4Change Yolo Device

It this repository you will find the code used directly on Rapsberry Pi with a Intel Movidius Neural Stick. For the backend/cloud component of the solution, see ai4change-yolo-backend repository.

The workflow of the solution is following:

  1. RaspberryPi and Intel Movidius are used to recognize an item seen by a camera.
  2. The name of recognized item is sent to AWS via MQTT (using "products" topic).
  3. On AWS the recommendation is generated (using AWS Lambda).
  4. The recommendation is sent back to RaspberryPi via MQTT (using "advice" topic).
  5. Based on the reciveded recommendation, the image is displayed on the screen.

For deployment instructions see below.

https://github.com/ai4change-yolo/ai4change-yolo-device/blob/master/_graphics/img1.jpg

https://github.com/ai4change-yolo/ai4change-yolo-device/blob/master/_graphics/img2.jpg

Install needed python libraries (from pip)

pip install AWSIoTPythonSDK
pip install configparser
pip install imutils
pip install picamera
pip install opencv-python

Install Movidius SDK (as root)

mkdir -p ~/movidius

cd ~/movidius

wget https://ncs-forum-uploads.s3.amazonaws.com/ncsdk/ncsdk-01_12_00_01-full/ncsdk-1.12.00.01.tar.gz

tar xzf ncsdk-1.12.00.01.tar.gz

cd ncsdk-1.12.00.01

make install

make examples

Troubleshooting

If error while example compilation:

RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa

Upgrade numpy package:

pip3 install --upgrade numpy

Links

AWK IoT Python SDK: https://github.com/aws/aws-iot-device-sdk-python

Movidius SDK: https://developer.movidius.com/start

Real-time object detection on the Raspberry Pi with the Movidius NCS: https://www.pyimagesearch.com/2018/02/19/real-time-object-detection-on-the-raspberry-pi-with-the-movidius-ncs/

Deploying Your Customized Caffe Models on Intel® Movidius™ Neural Compute Stick: https://movidius.github.io/blog/deploying-custom-caffe-models/

ai4change-yolo-device's People

Contributors

jczas avatar jczas-capgemini avatar marcinstachowiak avatar pszajows avatar

Watchers

 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.