GithubHelp home page GithubHelp logo

lostandfoundry / lost-and-found-ml-ibm-watson-cloudant Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 142 KB

This is the code which when integrated with the LostAndFound web application will help us analyze pictures submitted by the claimants.

License: Apache License 2.0

Jupyter Notebook 22.89% JavaScript 52.89% HTML 9.27% CSS 13.26% Shell 1.69%
machine-learning watson-visual-recognition cloudant-database watson cloud-functions serverless openwhisk cors watson-apis picture

lost-and-found-ml-ibm-watson-cloudant's Introduction

Build Status

Serverless Image Recognition with Cloud Functions

The application demonstrates an IBM Cloud Functions (based on Apache OpenWhisk) that gets an image from the Cloudant database and classifies it through Watson Visual Recognition. The use case demonstrates how actions work with data services and execute logic in response to Cloudant events.

One function, or action, is triggered by changes (in this use case, an upload of a document) in a Cloudant database. These documents are piped to another action that submits the image to Watson Visual recognition and upload a new document in Cloudant with the classifiers produced by Watson.

Flow

  1. User chooses a picture from the gallery.
  2. The image is stored in the Cloudant database.
  3. Cloud Function is triggered when there's a new image in the database.
  4. Cloud Function gets the image and uses Watson Visual Recognition to process the image.
  5. Cloud Function stores the results (classes with scores) from Visual Recognition in the database.
  6. The user can see the new tags or classes in the image they uploaded.

Included components

  • IBM Cloud Functions (powered by Apache OpenWhisk): Execute code on demand in a highly scalable, serverless environment.
  • Cloudant: A fully managed data layer designed for modern web and mobile applications that leverages a flexible JSON schema.
  • Watson Visual Recognition: Visual Recognition understands the contents of images - visual concepts tag the image, find human faces, approximate age and gender, and find similar images in a collection.

Featured technologies

  • Serverless: An event-action platform that allows you to execute code in response to an event.

Double-click web/index.html_

We need to enable CORS - https://cloud.ibm.com/docs/services/Cloudant/api/cors.html#cors

OR,

run npm install followed by npm start in the cloned folder to view the running app in electron.

Usage

Please go through the jupiter notebook file to understand the specifics of the product we have come up with, and at what stage we have implemented this idea.

Links

License

This code pattern is licensed under the Apache Software License, Version 2. Separate third party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 (DCO) and the Apache Software License, Version 2.

Apache Software License (ASL) FAQ

lost-and-found-ml-ibm-watson-cloudant's People

Contributors

dependabot[bot] avatar nimishbongale avatar

Stargazers

 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.