Git Product home page Git Product logo

anamoly-detection's Introduction

What this lab covers

The labs is intended to showcase the capability of RH components, and how these components can be composed to provide modern applications. The application here is an example of predictive maintenance system which collects data from edge and analyse it for anomalies. The aim of this lab are as follows

  • Show how RH Managed service offerings make application lifecycle faster and scalable
  • Show how RH Data Science makes it easy to build and deploy models.
  • How different components works together to solve a business problem. The application first collects data from the edge devices such as cameras and send the raw data to the AMQ Streams. A consumer to the stream will perform inference and generate alerts. Data Science team use the platform to build (and re-train) and deploy the model in self-serving fashion. img.png

Technical Architecture

img_1.png

How to run this lab

  • Have an OCP cluster using RHPDS
  • Run the deployments in the deploy folder to create Minio and model inferencing alongwith the consumer component.
    • Make sure to change the enviornment variables in the deployment yamls
  • Create a topic named 'video-stream' in RH AMQ Streams online and create service account for SASL Authentication
  • Run the program in the event-producer folder (docker version is also available), to capture the video feed from your laptop (mimicing the edge device)
  • Open the JS file in local browser to see the feed results

Env Settings

export MINIO_USER="minio"
export MINIO_PASSWORD=""
export SASL_USERNAME=""
export SASL_PASSWORD=""
export KAFKA_BROKER=""
export GROUP_ID="imageclassification"
export MINIO_SERVER=""
export PARALLEL_INFERENCE=15
export PROMETHEUS_SERVER=localhost:9090
export MODEL_URL="http://model-1-pred-demo-fmv3.apps.dbs-indo-1.apac-1.rht-labs.com/api/v1.0/predictions

Run producer

brew install go
brew isntall opencv

Warning

Make sure that the image-prediction bucket is public

anamoly-detection's People

Contributors

masoodfaisal avatar fmasoodredhat avatar bhsingh1 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.