Code Monkey home page Code Monkey logo

aiy-vision-kit's Introduction

aiy-vision-kit

Example project using the Google AIY Vision Kit

The Google AIY Vision kit is an interesting piece of hardware.

AIY Vision Kit

Assembled

Inside look

It has a Pi 0 HAT that has the Intel Movidius Myriad neural compute chip. A key feature of the HAT is that it directly taps into the camera stream instead of relying on the Pi to fetch the video and then copy it to the compute chip for Machine Learning.

Google provides a customized Raspbian image alongside the kit. The Raspbian image comes with custom firmware for the myriad HAT, custom kernel modules for the HAT and some example modules.

Google provides some documentation if someone wants to use the vision kit with a custom OS. This repository sets up the AIY Vision Kit so that it can be used using balenaOS.

The Dockerfile and run.sh have quite a few comments to follow what is going on.

You will need the following variables in your device/fleet configuration

  • RESIN_HOST_CONFIG_gpu_mem : 128
  • RESIN_HOST_CONFIG_start_x : 1

Application container output_path

Notice the avg_joy_score when the kit is running :)

Some notes:

Google provides DKMS deb packages for the kernel modules needed by the HAT. By default they compile using the raspbian kernel headers. We needed to extract the kernel sources and compile the module using the balenaOS kernel headers.

The firmware needed to be present in the /lib/firmware/ folder which is read-only by default in balenaOS. We read-write mount that folder temporarily while installing the firmware.

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.