Git Product home page Git Product logo

iot_face_stream's Introduction

Notes

I have used docker compose to orchestrate different containers in jetson and cloud hosts.

Topic Name:

I have used the topic name as "face_stream" in both MQTT brokers. As the topic only is a realtime stream of cropped out face-images coming from USB camera, I thought face_stream would be appropriate naming.

I have kept the QOS to be 0 (atmost 1) which is best effort and involves low overhead given that we are using an edge IOT device. Also, since it a realtime feed, it is ok to have message losses. Hence, I chose that QOS level.

Setup

Environment

Change environmnet file to provide correct cloud host and bucket name. The S3 Bucket URL is currently hardcoded in scripts/image_saver.py. Please change it if you are using a different region.

Step 1: In Cloud Host

  1. Run ./setup_docker_cloud.sh This will install docker and docker-compose in cloud Host

  2. Run ./build_docker_cloud.sh This will build 2 docker images as mentioned in the architecture

  3. Run docker-compose -f docker-compose-cloud-hw03.yml up This will run docker-compose which will start mosquitto broker and image saver docker containers.

Step 2: In Jetson Host

  1. Run ./setup_docker_jetson.sh This will install docker-compose in Jetson Host

  2. Run ./build_docker_jetson.sh This will build 3 docker images as mentioned in the architecture

  3. Run docker-compose -f docker-compose-jetson-hw03.yml up This will run docker-compose which will start mosquitto broker, facedetect and image forwarder docker containers. Facedetect will start sending face images every 1 second. At this point, you should be able to see images getting added to S3 bucket.

Location

Please find the images under the URL : https://s3.us-east.objectstorage.softlayer.net/cloud-object-storage-h2-cos-standard-bsp/ (E.g: https://s3.us-east.objectstorage.softlayer.net/cloud-object-storage-h2-cos-standard-bsp/image_1590228604_000006.png)

iot_face_stream's People

Contributors

ksjeyabarani 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.