Git Product home page Git Product logo

cats-on-the-edge's Introduction

Cats-on-the-Edge

This repository contains code from my experimention around Raspberry Pi + PiCamera and Azure IoT Edge

Original Idea

It all started with the idea of preserving endangered species. Given the lack of pictures of endangered species I ended up monitoring my cat since I had plenty of footage for my cat :)

  • I wanted to use a PiCamera since 1) I already had one and 2) it has very good resolution and does not add additional HW complexity.
  • I wanted to minimize the amount of code so I ended up using Custom Vision APIs which now allows you to export a custom model to the edge.

I did struggle a bit to find examples to use PiCamera instead of regular USB cameras. Since I could not find any tutorial I thought it was meaningful to publish my code as an example.

Release Notes

This code was built following these tutorials:

I first debugged my code on a Linux VM:

.. and then deployed it on a raspberry Pi 3 module B+

Note for Raspberry and PiCamera

You will notice that since we are using PiCamera you will have to modify the default container configuration to:

  • expose the PiCamera to the container (via HostConfig in createOptions: Binds and Devices need to be specified, see deployment.template.json)
  • modify the arm32/raspbian Dockerfile so that the moduleuser can access the PiCamera (adding the user to the video group)
  • modify the arm32/raspbian Dockerfile so that the moduleuser can access the local disk creating a folder where the user has access

cats-on-the-edge's People

Contributors

elenaterenzi avatar

Stargazers

Takumasa Hirabayashi 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.