Git Product home page Git Product logo

app-ar-pipeline's Introduction

Demo Pipeline:

demo.gif pipeline

This is an AR pipeline composed of 3 microservices.

  • Pre: preprocessing microservice, collects the frames and adapts them for the model.
  • Object Detection: detects the bounding boxes inside the image. If Object Recognition is up and running, it forwards the frames there. Otherwise, it sends the bounding boxes back to the client.
  • Object Recognitions: it receives the frames from object detection. For each bounding box of type "Person" it detects the face features and sends them back to the client.

How to deploy the pipeline using oakestra

Upload sla.json to Oak dashboard as follows:

Step 1: Upload the SLA

Let's create a new service with:

image

And let's use the SLA panel to uploade our sla.json file

image

Select sla.json and hit the upload config button.

Step 2: Deploy Pre, Obj and Rec

Use the deploy button for each service, use click the deploy all button. image

The target machine will download and execute the images. This operation might take time.

Step 3: Monitoring

When all services show the running status, check for the service details of Pre using the Instance details button. image

Note down the Node IP address.

Step 4: Run the client

  1. Move to the machine you're willing to use as client, and make sure the Node IP from Step 3 can be reached from this machine.

  2. Clone and navigate to the client folder of this repository.

  3. Make sure you have a working installation of GoLang. Check it out using the command go version

  4. Make sure you have OpenCV 4.5.5 installed on your machine

  5. Install client dependencies with go get -u

  6. Run your client with the following command.

go run main.go -entry=<Node IP> -serverport=50100 -bbps=3 -latency=true

Replace Node IP with the one from Step 3.

Please note the following:

-----> The currently published images only work on amd64 architectures! For arm devices please build your own images.

-----> Recognition is a very heavyweight service. The current image does not exploit cuda capabilities. If your hardware is not bulky enough try first only deploying pre and obj

app-ar-pipeline's People

Contributors

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